OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ByteString
(Results
1 - 25
of
35
) sorted by null
1
2
/external/protobuf/java/src/main/java/com/google/protobuf/
ByteString.java
47
public final class
ByteString
{
50
private
ByteString
(final byte[] bytes) {
78
// byte[] ->
ByteString
81
* Empty
ByteString
.
83
public static final
ByteString
EMPTY = new
ByteString
(new byte[0]);
86
* Copies the given bytes into a {@code
ByteString
}.
88
public static
ByteString
copyFrom(final byte[] bytes, final int offset,
92
return new
ByteString
(copy);
96
* Copies the given bytes into a {@code
ByteString
}
[
all
...]
Internal.java
91
public static
ByteString
bytesDefaultValue(String bytes) {
93
return
ByteString
.copyFrom(bytes.getBytes("ISO-8859-1"));
MessageLite.java
100
* Serializes the message to a {@code
ByteString
} and returns it. This is
104
ByteString
toByteString();
247
Builder mergeFrom(
ByteString
data) throws InvalidProtocolBufferException;
254
Builder mergeFrom(
ByteString
data,
UnknownFieldSet.java
145
* Serializes the message to a {@code
ByteString
} and returns it. This is
148
public
ByteString
toByteString() {
150
final
ByteString
.CodedBuilder out =
151
ByteString
.newCodedBuilder(getSerializedSize());
156
"Serializing to a
ByteString
threw an IOException (should " +
243
public static UnknownFieldSet parseFrom(final
ByteString
data)
507
public Builder mergeFrom(final
ByteString
data)
518
"Reading from a
ByteString
threw an IOException (should " +
583
ByteString
data,
688
public List<
ByteString
> getLengthDelimitedList() { return lengthDelimited;
[
all
...]
AbstractMessageLite.java
47
public
ByteString
toByteString() {
49
final
ByteString
.CodedBuilder out =
50
ByteString
.newCodedBuilder(getSerializedSize());
55
"Serializing to a
ByteString
threw an IOException (should " +
117
public BuilderType mergeFrom(final
ByteString
data)
128
"Reading from a
ByteString
threw an IOException (should " +
134
final
ByteString
data,
146
"Reading from a
ByteString
threw an IOException (should " +
Message.java
282
Builder mergeFrom(
ByteString
data) throws InvalidProtocolBufferException;
283
Builder mergeFrom(
ByteString
data,
TextFormat.java
233
generator.print(escapeBytes((
ByteString
) value));
274
for (final
ByteString
value : field.getLengthDelimitedList()) {
695
* {@link
ByteString
}, and return it. Otherwise, throw a
698
public
ByteString
consumeByteString() throws ParseException {
699
List<
ByteString
> list = new ArrayList<
ByteString
>();
704
return
ByteString
.copyFrom(list);
713
private void consumeByteString(List<
ByteString
> list) throws ParseException {
728
final
ByteString
result = unescapeBytes(escaped);
[
all
...]
CodedOutputStream.java
112
* {@link
ByteString
#newCodedBuilder}.
123
* {@link
ByteString
#newCodedBuilder}.
225
public void writeBytes(final int fieldNumber, final
ByteString
value)
294
final
ByteString
value)
383
public void writeBytesNoTag(final
ByteString
value) throws IOException {
538
final
ByteString
value) {
611
final int fieldNumber, final
ByteString
value) {
736
public static int computeBytesSizeNoTag(final
ByteString
value) {
[
all
...]
CodedInputStream.java
264
public
ByteString
readBytes() throws IOException {
269
final
ByteString
result =
ByteString
.copyFrom(buffer, bufferPos, size);
274
return
ByteString
.copyFrom(readRawBytes(size));
550
* {@link
ByteString
#newCodedInput}).
WireFormat.java
84
BYTE_STRING(
ByteString
.EMPTY),
DynamicMessage.java
88
public static DynamicMessage parseFrom(Descriptor type,
ByteString
data)
94
public static DynamicMessage parseFrom(Descriptor type,
ByteString
data,
/external/protobuf/java/src/test/java/com/google/protobuf/
WireFormatTest.java
60
ByteString
rawBytes = message.toByteString();
71
ByteString
rawBytes = message.toByteString();
85
ByteString
rawBytes = message.toByteString();
97
ByteString
rawBytes = message.toByteString();
100
ByteString
rawBytes2 = message2.toByteString();
133
ByteString
rawBytes = message.toByteString();
145
ByteString
rawBytes = message.toByteString();
148
ByteString
rawBytes2 = message2.toByteString();
159
ByteString
rawBytes = message.toByteString();
172
ByteString
rawBytes = message.toByteString()
[
all
...]
UnknownFieldSetTest.java
67
ByteString
getBizarroData() throws Exception {
91
ByteString
allFieldsData;
150
ByteString
data = emptyMessage.toByteString();
217
ByteString
data = fields.toByteString();
233
ByteString
bizarroData = getBizarroData();
258
ByteString
bizarroData = getBizarroData();
277
ByteString
data =
331
ByteString
data =
360
.addLengthDelimited(
ByteString
.EMPTY)
DynamicMessageTest.java
151
ByteString
rawBytes = message.toByteString();
165
ByteString
rawBytes = message.toByteString();
178
ByteString
rawBytes = message.toByteString();
192
ByteString
rawBytes = message.toByteString();
CodedInputStreamTest.java
364
builder.setOptionalBytes(
ByteString
.copyFrom(blob));
368
// directly from a
ByteString
, so that CodedInputStream uses buffered
383
ByteString
.Output rawOutput =
ByteString
.newOutput();
423
ByteString
data64 = makeRecursiveMessage(64).toByteString();
424
ByteString
data65 = makeRecursiveMessage(65).toByteString();
492
ByteString
.Output rawOutput =
ByteString
.newOutput();
LiteTest.java
73
ByteString
data = message.toByteString();
MessageTest.java
253
TestRequired.parseFrom(
ByteString
.EMPTY);
261
ByteString
data =
307
DynamicMessage.parseFrom(descriptor,
ByteString
.EMPTY);
TextFormatTest.java
148
.addLengthDelimited(
ByteString
.copyFromUtf8("4"))
206
* Helper to construct a
ByteString
from a String containing only 8-bit
210
private
ByteString
bytes(String str) throws Exception {
211
return
ByteString
.copyFrom(str.getBytes("ISO-8859-1"));
215
* Helper to construct a
ByteString
from a bunch of bytes. The inputs are
219
private
ByteString
bytes(int... bytesAsInts) {
224
return
ByteString
.copyFrom(bytes);
/development/tools/glesv2debugger/src/com/android/glesv2debugger/
MessageProcessor.java
19
import com.google.protobuf.
ByteString
;
39
public static byte[] lzfDecompressChunks(final
ByteString
data) {
106
int type, final
ByteString
data) {
MessageParser.java
24
import com.google.protobuf.
ByteString
;
51
ByteString
parseFloats(int count) {
58
return
ByteString
.copyFrom(buffer);
61
ByteString
parseInts(int count) {
68
return
ByteString
.copyFrom(buffer);
71
ByteString
parseUInts(int count) {
78
return
ByteString
.copyFrom(buffer);
81
ByteString
parseMatrix(int columns, int count) {
85
ByteString
parseString() {
94
return
ByteString
.copyFromUtf8(arg)
[
all
...]
DebuggerMessage.java
675
private com.google.protobuf.
ByteString
data_ = com.google.protobuf.
ByteString
.EMPTY;
677
public com.google.protobuf.
ByteString
getData() { return data_; }
926
com.google.protobuf.
ByteString
data
[
all
...]
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gldebugger/
MessageProcessor.java
19
import com.google.protobuf.
ByteString
;
39
public static byte[] lzfDecompressChunks(final
ByteString
data) {
106
int type, final
ByteString
data) {
MessageParser.java
24
import com.google.protobuf.
ByteString
;
51
ByteString
parseFloats(int count) {
58
return
ByteString
.copyFrom(buffer);
61
ByteString
parseInts(int count) {
68
return
ByteString
.copyFrom(buffer);
71
ByteString
parseUInts(int count) {
78
return
ByteString
.copyFrom(buffer);
81
ByteString
parseMatrix(int columns, int count) {
85
ByteString
parseString() {
94
return
ByteString
.copyFromUtf8(arg)
[
all
...]
/development/tools/glesv2debugger/test/com/android/glesv2debugger/
MessageParserExTest.java
25
import com.google.protobuf.
ByteString
;
100
builder.setArg0(54).setArg1(2).setArg2(0).setData(
ByteString
.copyFrom(srcData));
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger.tests/src/com/android/ide/eclipse/gldebugger/
MessageParserExTest.java
29
import com.google.protobuf.
ByteString
;
104
builder.setArg0(54).setArg1(2).setArg2(0).setData(
ByteString
.copyFrom(srcData));
Completed in 9311 milliseconds
1
2