Home
last modified time | relevance | path

Searched refs:CodedInputStream (Results 1 – 25 of 58) sorted by relevance

123

/external/protobuf/java/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java93 private void assertDataConsumed(byte[] data, CodedInputStream input) in assertDataConsumed()
104 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarint()
108 input = CodedInputStream.newInstance(data); in assertReadVarint()
112 input = CodedInputStream.newInstance(data); in assertReadVarint()
116 input = CodedInputStream.newInstance(data); in assertReadVarint()
122 input = CodedInputStream.newInstance( in assertReadVarint()
127 input = CodedInputStream.newInstance( in assertReadVarint()
132 input = CodedInputStream.newInstance( in assertReadVarint()
137 input = CodedInputStream.newInstance( in assertReadVarint()
149 assertEquals((int) value, CodedInputStream.readRawVarint32(rawInput)); in assertReadVarint()
[all …]
DCodedOutputStreamTest.java248 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(0))); in testEncodeZigZag()
250 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(1))); in testEncodeZigZag()
252 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-1))); in testEncodeZigZag()
254 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(14927))); in testEncodeZigZag()
256 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-3612))); in testEncodeZigZag()
259 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(0))); in testEncodeZigZag()
261 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(1))); in testEncodeZigZag()
263 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-1))); in testEncodeZigZag()
265 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(14927))); in testEncodeZigZag()
267 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-3612))); in testEncodeZigZag()
[all …]
/external/protobuf/src/google/protobuf/io/
Dcoded_stream.h142 class CodedInputStream; variable
156 class LIBPROTOBUF_EXPORT CodedInputStream {
159 explicit CodedInputStream(ZeroCopyInputStream* input);
164 explicit CodedInputStream(const uint8* buffer, int size);
171 ~CodedInputStream();
471 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CodedInputStream);
793 inline bool CodedInputStream::ReadVarint32(uint32* value) { in ReadVarint32()
803 inline bool CodedInputStream::ReadVarint64(uint64* value) { in ReadVarint64()
814 inline const uint8* CodedInputStream::ReadLittleEndian32FromArray( in ReadLittleEndian32FromArray()
829 inline const uint8* CodedInputStream::ReadLittleEndian64FromArray( in ReadLittleEndian64FromArray()
[all …]
Dcoded_stream_unittest.cc190 CodedInputStream coded_input(&input); in TEST_2D()
205 CodedInputStream coded_input(&input); in TEST_2D()
239 CodedInputStream input(&in); in TEST_F()
252 CodedInputStream coded_input(&input); in TEST_1D()
286 CodedInputStream::ExpectTagFromArray(buffer_, in TEST_1D()
289 CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); in TEST_1D()
292 CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); in TEST_1D()
301 CodedInputStream coded_input(&input); in TEST_2D()
385 CodedInputStream coded_input(&input); in TEST_2D()
435 CodedInputStream coded_input(&input); in TEST_2D()
[all …]
Dcoded_stream.cc72 CodedInputStream::~CodedInputStream() { in ~CodedInputStream()
83 int CodedInputStream::default_recursion_limit_ = 100;
90 void CodedInputStream::BackUpInputToCurrentPosition() { in BackUpInputToCurrentPosition()
103 inline void CodedInputStream::RecomputeBufferLimits() { in RecomputeBufferLimits()
116 CodedInputStream::Limit CodedInputStream::PushLimit(int byte_limit) { in PushLimit()
141 void CodedInputStream::PopLimit(Limit limit) { in PopLimit()
152 int CodedInputStream::BytesUntilLimit() const { in BytesUntilLimit()
159 void CodedInputStream::SetTotalBytesLimit( in SetTotalBytesLimit()
174 int CodedInputStream::BytesUntilTotalBytesLimit() const { in BytesUntilTotalBytesLimit()
179 void CodedInputStream::PrintTotalBytesLimitError() { in PrintTotalBytesLimitError()
[all …]
/external/protobuf/src/google/protobuf/
Dmessage_lite.cc103 inline bool InlineMergeFromCodedStream(io::CodedInputStream* input,
106 inline bool InlineParseFromCodedStream(io::CodedInputStream* input,
109 inline bool InlineParsePartialFromCodedStream(io::CodedInputStream* input,
119 bool InlineMergeFromCodedStream(io::CodedInputStream* input, in InlineMergeFromCodedStream()
129 bool InlineParseFromCodedStream(io::CodedInputStream* input, in InlineParseFromCodedStream()
135 bool InlineParsePartialFromCodedStream(io::CodedInputStream* input, in InlineParsePartialFromCodedStream()
142 io::CodedInputStream input(reinterpret_cast<const uint8*>(data), size); in InlineParseFromArray()
149 io::CodedInputStream input(reinterpret_cast<const uint8*>(data), size); in InlineParsePartialFromArray()
156 bool MessageLite::MergeFromCodedStream(io::CodedInputStream* input) { in MergeFromCodedStream()
160 bool MessageLite::ParseFromCodedStream(io::CodedInputStream* input) { in ParseFromCodedStream()
[all …]
Dwire_format.h57 class CodedInputStream; // coded_stream.h variable
106 static bool ParseAndMergePartial(io::CodedInputStream* input,
133 static bool SkipField(io::CodedInputStream* input, uint32 tag,
138 static bool SkipMessage(io::CodedInputStream* input,
189 io::CodedInputStream* input);
207 io::CodedInputStream* input,
250 static bool SkipMessageSetField(io::CodedInputStream* input,
258 io::CodedInputStream* input);
273 virtual bool SkipField(io::CodedInputStream* input, uint32 tag);
274 virtual bool SkipMessage(io::CodedInputStream* input);
Dwire_format_lite_inl.h60 io::CodedInputStream* input,
69 io::CodedInputStream* input,
78 io::CodedInputStream* input,
84 io::CodedInputStream* input,
90 io::CodedInputStream* input,
99 io::CodedInputStream* input,
108 io::CodedInputStream* input,
114 io::CodedInputStream* input,
120 io::CodedInputStream* input,
129 io::CodedInputStream* input,
[all …]
Dmessage_lite.h48 class CodedInputStream; variable
118 bool ParseFromCodedStream(io::CodedInputStream* input);
121 bool ParsePartialFromCodedStream(io::CodedInputStream* input);
159 bool MergeFromCodedStream(io::CodedInputStream* input);
166 virtual bool MergePartialFromCodedStream(io::CodedInputStream* input) = 0;
Dwire_format_lite.cc112 io::CodedInputStream* input, uint32 tag) { in SkipField()
157 io::CodedInputStream* input, uint32 tag, io::CodedOutputStream* output) { in SkipField()
213 bool WireFormatLite::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
232 bool WireFormatLite::SkipMessage(io::CodedInputStream* input, in SkipMessage()
254 io::CodedInputStream* input, uint32 tag) { in SkipField()
258 bool FieldSkipper::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
268 io::CodedInputStream* input, uint32 tag) { in SkipField()
272 bool CodedOutputStreamFieldSkipper::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
282 bool WireFormatLite::ReadPackedEnumNoInline(io::CodedInputStream* input, in ReadPackedEnumNoInline()
287 io::CodedInputStream::Limit limit = input->PushLimit(length); in ReadPackedEnumNoInline()
[all …]
Dwire_format_lite.h164 static bool SkipField(io::CodedInputStream* input, uint32 tag);
169 static bool SkipField(io::CodedInputStream* input, uint32 tag,
175 static bool SkipMessage(io::CodedInputStream* input);
179 static bool SkipMessage(io::CodedInputStream* input,
242 #define input io::CodedInputStream* input_arg
505 google::protobuf::io::CodedInputStream* input,
511 google::protobuf::io::CodedInputStream* input,
530 virtual bool SkipField(io::CodedInputStream* input, uint32 tag);
534 virtual bool SkipMessage(io::CodedInputStream* input);
551 virtual bool SkipField(io::CodedInputStream* input, uint32 tag);
[all …]
Dwire_format_unittest.cc88 io::CodedInputStream input(&raw_input); in TEST()
105 io::CodedInputStream input(&raw_input); in TEST()
122 io::CodedInputStream input(&raw_input); in TEST()
138 io::CodedInputStream input(&raw_input); in TEST()
154 io::CodedInputStream input(&raw_input); in TEST()
171 io::CodedInputStream input(&raw_input); in TEST()
188 io::CodedInputStream input(&raw_input); in TEST()
207 io::CodedInputStream input(&raw_input); in TEST()
411 io::CodedInputStream coded_input(&raw_input); in TEST()
556 io::CodedInputStream input(reinterpret_cast<const uint8*>(data.data()), in TEST()
[all …]
Dextension_set_heavy.cc59 virtual bool SkipMessageSetField(io::CodedInputStream* input,
63 io::CodedInputStream* input, int field_number) { in SkipMessageSetField()
269 bool ExtensionSet::ParseField(uint32 tag, io::CodedInputStream* input, in ParseField()
284 bool ExtensionSet::ParseMessageSet(io::CodedInputStream* input, in ParseMessageSet()
537 int wire_type, int field_number, io::CodedInputStream* input, in ParseFieldMaybeLazily()
545 bool ExtensionSet::ParseMessageSet(io::CodedInputStream* input, in ParseMessageSet()
567 bool ExtensionSet::ParseMessageSet(io::CodedInputStream* input, in ParseMessageSet()
574 bool ExtensionSet::ParseMessageSetItem(io::CodedInputStream* input, in ParseMessageSetItem()
604 io::CodedInputStream sub_input( in ParseMessageSetItem()
Dextension_set.h62 class CodedInputStream; // coded_stream.h variable
347 bool ParseField(uint32 tag, io::CodedInputStream* input,
357 bool ParseField(uint32 tag, io::CodedInputStream* input,
359 bool ParseField(uint32 tag, io::CodedInputStream* input,
362 bool ParseField(uint32 tag, io::CodedInputStream* input,
368 bool ParseMessageSet(io::CodedInputStream* input,
374 bool ParseMessageSet(io::CodedInputStream* input,
376 bool ParseMessageSet(io::CodedInputStream* input,
439 io::CodedInputStream* input) = 0;
551 io::CodedInputStream* input,
[all …]
Dunknown_field_set.h49 class CodedInputStream; // coded_stream.h variable
136 bool MergeFromCodedStream(io::CodedInputStream* input);
137 bool ParseFromCodedStream(io::CodedInputStream* input);
Dwire_format.cc69 io::CodedInputStream* input, uint32 tag) { in SkipField()
73 bool UnknownFieldSetFieldSkipper::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
82 bool WireFormat::SkipField(io::CodedInputStream* input, uint32 tag, in SkipField()
142 bool WireFormat::SkipMessage(io::CodedInputStream* input, in SkipMessage()
364 bool WireFormat::ParseAndMergePartial(io::CodedInputStream* input, in ParseAndMergePartial()
416 bool WireFormat::SkipMessageSetField(io::CodedInputStream* input, in SkipMessageSetField()
428 io::CodedInputStream* input) { in ParseAndMergeMessageSetField()
451 io::CodedInputStream* input) { in ParseAndMergeField()
477 io::CodedInputStream::Limit limit = input->PushLimit(length); in ParseAndMergeField()
655 io::CodedInputStream* input, in ParseAndMergeMessageSetItem()
[all …]
/external/protobuf/java/src/main/java/com/google/protobuf/
DAbstractMessageLite.java124 public BuilderType mergeFrom(final CodedInputStream input) in mergeFrom()
131 final CodedInputStream input, in mergeFrom()
138 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
156 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
178 final CodedInputStream input = in mergeFrom()
179 CodedInputStream.newInstance(data, off, len); in mergeFrom()
204 final CodedInputStream input = in mergeFrom()
205 CodedInputStream.newInstance(data, off, len); in mergeFrom()
219 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
229 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
[all …]
DAbstractParser.java81 public MessageType parsePartialFrom(CodedInputStream input) in parsePartialFrom()
86 public MessageType parseFrom(CodedInputStream input, in parseFrom()
93 public MessageType parseFrom(CodedInputStream input) in parseFrom()
103 CodedInputStream input = data.newCodedInput(); in parsePartialFrom()
136 CodedInputStream input = CodedInputStream.newInstance(data, off, len); in parsePartialFrom()
191 CodedInputStream codedInput = CodedInputStream.newInstance(input); in parsePartialFrom()
228 size = CodedInputStream.readRawVarint32(firstByte, input); in parsePartialDelimitedFrom()
DParser.java51 public MessageType parseFrom(CodedInputStream input) in parseFrom()
60 public MessageType parseFrom(CodedInputStream input, in parseFrom()
69 public MessageType parsePartialFrom(CodedInputStream input) in parsePartialFrom()
77 public MessageType parsePartialFrom(CodedInputStream input, in parsePartialFrom()
DCodedInputStream.java53 public final class CodedInputStream { class
57 public static CodedInputStream newInstance(final InputStream input) { in newInstance()
58 return new CodedInputStream(input); in newInstance()
64 public static CodedInputStream newInstance(final byte[] buf) { in newInstance()
71 public static CodedInputStream newInstance(final byte[] buf, final int off, in newInstance()
73 CodedInputStream result = new CodedInputStream(buf, off, len); in newInstance()
104 public static CodedInputStream newInstance(ByteBuffer buf) { in newInstance()
119 static CodedInputStream newInstance(LiteralByteString byteString) { in newInstance()
120 CodedInputStream result = new CodedInputStream(byteString); in newInstance()
889 private CodedInputStream(final byte[] buffer, final int off, final int len) { in CodedInputStream() method in CodedInputStream
[all …]
DUnknownFieldSet.java238 public static UnknownFieldSet parseFrom(final CodedInputStream input) in parseFrom()
475 public Builder mergeFrom(final CodedInputStream input) throws IOException { in mergeFrom()
490 public boolean mergeFieldFrom(final int tag, final CodedInputStream input) in mergeFieldFrom()
527 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
548 final CodedInputStream input = CodedInputStream.newInstance(data); in mergeFrom()
567 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
579 final int size = CodedInputStream.readRawVarint32(firstByte, input); in mergeDelimitedFrom()
593 CodedInputStream input, in mergeFrom()
610 final CodedInputStream input = in mergeFrom()
611 CodedInputStream.newInstance(data, off, len); in mergeFrom()
[all …]
DMessageReflection.java322 Object parseGroup(CodedInputStream input, ExtensionRegistryLite registry, in parseGroup()
330 Object parseMessage(CodedInputStream input, ExtensionRegistryLite registry, in parseMessage()
349 CodedInputStream input, WireFormat.FieldType type, in readPrimitiveField()
444 public Object parseGroup(CodedInputStream input, in parseGroup()
465 public Object parseMessage(CodedInputStream input, in parseMessage()
518 CodedInputStream input, WireFormat.FieldType type, in readPrimitiveField()
605 public Object parseGroup(CodedInputStream input, in parseGroup()
620 public Object parseMessage(CodedInputStream input, in parseMessage()
656 CodedInputStream input, WireFormat.FieldType type, in readPrimitiveField()
677 CodedInputStream input, in mergeFieldFrom()
[all …]
DMessageLite.java196 Builder mergeFrom(CodedInputStream input) throws IOException; in mergeFrom()
204 Builder mergeFrom(CodedInputStream input, in mergeFrom()
DMessage.java134 Builder mergeFrom(CodedInputStream input) throws IOException; in mergeFrom()
135 Builder mergeFrom(CodedInputStream input, in mergeFrom()
/external/protobuf/benchmarks/
DProtoBench.java43 import com.google.protobuf.CodedInputStream;
136 .mergeFrom(CodedInputStream.newInstance(inputData)).build(); in runTest()
142 .mergeFrom(CodedInputStream.newInstance(inputStream)).build(); in runTest()

123