Home
last modified time | relevance | path

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

12

/external/protobuf/java/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java93 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarint()
96 input = CodedInputStream.newInstance(data); in assertReadVarint()
102 input = CodedInputStream.newInstance( in assertReadVarint()
106 input = CodedInputStream.newInstance( in assertReadVarint()
118 assertEquals((int)value, CodedInputStream.readRawVarint32(rawInput)); in assertReadVarint()
130 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarintFailure()
138 input = CodedInputStream.newInstance(data); in assertReadVarintFailure()
148 CodedInputStream.readRawVarint32(new ByteArrayInputStream(data)); in assertReadVarintFailure()
200 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadLittleEndian32()
206 input = CodedInputStream.newInstance( in assertReadLittleEndian32()
[all …]
DCodedOutputStreamTest.java246 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(0))); in testEncodeZigZag()
248 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(1))); in testEncodeZigZag()
250 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-1))); in testEncodeZigZag()
252 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(14927))); in testEncodeZigZag()
254 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-3612))); in testEncodeZigZag()
257 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(0))); in testEncodeZigZag()
259 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(1))); in testEncodeZigZag()
261 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-1))); in testEncodeZigZag()
263 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(14927))); in testEncodeZigZag()
265 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-3612))); in testEncodeZigZag()
[all …]
/external/protobuf/src/google/protobuf/io/
Dcoded_stream.h129 class CodedInputStream; variable
143 class LIBPROTOBUF_EXPORT CodedInputStream {
146 explicit CodedInputStream(ZeroCopyInputStream* input);
151 explicit CodedInputStream(const uint8* buffer, int size);
158 ~CodedInputStream();
434 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CodedInputStream);
714 inline bool CodedInputStream::ReadVarint32(uint32* value) { in ReadVarint32()
724 inline bool CodedInputStream::ReadVarint64(uint64* value) { in ReadVarint64()
735 inline const uint8* CodedInputStream::ReadLittleEndian32FromArray( in ReadLittleEndian32FromArray()
751 inline const uint8* CodedInputStream::ReadLittleEndian64FromArray( in ReadLittleEndian64FromArray()
[all …]
Dcoded_stream_unittest.cc184 CodedInputStream coded_input(&input); in TEST_2D()
199 CodedInputStream coded_input(&input); in TEST_2D()
219 CodedInputStream coded_input(&input); in TEST_1D()
253 CodedInputStream::ExpectTagFromArray(buffer_, in TEST_1D()
256 CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); in TEST_1D()
259 CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); in TEST_1D()
268 CodedInputStream coded_input(&input); in TEST_2D()
352 CodedInputStream coded_input(&input); in TEST_2D()
402 CodedInputStream coded_input(&input); in TEST_2D()
412 CodedInputStream coded_input(&input); in TEST_2D()
[all …]
Dcoded_stream.cc64 void CodedInputStream::BackUpInputToCurrentPosition() { in BackUpInputToCurrentPosition()
77 inline void CodedInputStream::RecomputeBufferLimits() { in RecomputeBufferLimits()
90 CodedInputStream::Limit CodedInputStream::PushLimit(int byte_limit) { in PushLimit()
116 void CodedInputStream::PopLimit(Limit limit) { in PopLimit()
127 int CodedInputStream::BytesUntilLimit() { in BytesUntilLimit()
135 void CodedInputStream::SetTotalBytesLimit( in SetTotalBytesLimit()
146 void CodedInputStream::PrintTotalBytesLimitError() { in PrintTotalBytesLimitError()
154 bool CodedInputStream::Skip(int count) { in Skip()
191 bool CodedInputStream::GetDirectBufferPointer(const void** data, int* size) { in GetDirectBufferPointer()
199 bool CodedInputStream::ReadRaw(void* buffer, int size) { in ReadRaw()
[all …]
Dcoded_stream_inl.h47 inline bool CodedInputStream::InternalReadStringInline(string* buffer, in InternalReadStringInline()
/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_lite_inl.h56 io::CodedInputStream* input,
65 io::CodedInputStream* input,
74 io::CodedInputStream* input,
80 io::CodedInputStream* input,
86 io::CodedInputStream* input,
95 io::CodedInputStream* input,
104 io::CodedInputStream* input,
110 io::CodedInputStream* input,
116 io::CodedInputStream* input,
125 io::CodedInputStream* input,
[all …]
Dwire_format.h56 class CodedInputStream; // coded_stream.h variable
105 static bool ParseAndMergePartial(io::CodedInputStream* input,
132 static bool SkipField(io::CodedInputStream* input, uint32 tag,
137 static bool SkipMessage(io::CodedInputStream* input,
188 io::CodedInputStream* input);
206 io::CodedInputStream* input,
252 virtual bool SkipField(io::CodedInputStream* input, uint32 tag);
253 virtual bool SkipMessage(io::CodedInputStream* input);
Dmessage_lite.h111 bool ParseFromCodedStream(io::CodedInputStream* input);
114 bool ParsePartialFromCodedStream(io::CodedInputStream* input);
152 bool MergeFromCodedStream(io::CodedInputStream* input);
159 virtual bool MergePartialFromCodedStream(io::CodedInputStream* input) = 0;
Dwire_format_lite.cc112 io::CodedInputStream* input, uint32 tag) { in SkipField()
156 bool WireFormatLite::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
176 io::CodedInputStream* input, uint32 tag) { in SkipField()
180 bool FieldSkipper::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
189 bool WireFormatLite::ReadPackedEnumNoInline(io::CodedInputStream* input, in ReadPackedEnumNoInline()
194 io::CodedInputStream::Limit limit = input->PushLimit(length); in ReadPackedEnumNoInline()
342 bool WireFormatLite::ReadString(io::CodedInputStream* input, in ReadString()
350 bool WireFormatLite::ReadBytes(io::CodedInputStream* input, in ReadBytes()
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()
332 io::CodedInputStream coded_input(&raw_input); in TEST()
477 io::CodedInputStream input(reinterpret_cast<const uint8*>(data.data()), in TEST()
491 io::CodedInputStream input(&raw_input); in TEST()
499 io::CodedInputStream input(&raw_input); in TEST()
[all …]
Dwire_format_lite.h51 class CodedInputStream; // coded_stream.h variable
166 static bool SkipField(io::CodedInputStream* input, uint32 tag);
171 static bool SkipMessage(io::CodedInputStream* input);
233 #define input io::CodedInputStream* input
488 google::protobuf::io::CodedInputStream* input,
507 virtual bool SkipField(io::CodedInputStream* input, uint32 tag);
511 virtual bool SkipMessage(io::CodedInputStream* input);
Dunknown_field_set.cc146 bool UnknownFieldSet::MergeFromCodedStream(io::CodedInputStream* input) { in MergeFromCodedStream()
158 bool UnknownFieldSet::ParseFromCodedStream(io::CodedInputStream* input) { in ParseFromCodedStream()
164 io::CodedInputStream coded_input(input); in ParseFromZeroCopyStream()
Dextension_set.h60 class CodedInputStream; // coded_stream.h variable
320 bool ParseField(uint32 tag, io::CodedInputStream* input,
326 bool ParseField(uint32 tag, io::CodedInputStream* input,
328 bool ParseField(uint32 tag, io::CodedInputStream* input,
334 bool ParseMessageSet(io::CodedInputStream* input,
340 bool ParseMessageSet(io::CodedInputStream* input,
342 bool ParseMessageSet(io::CodedInputStream* input,
461 bool ParseMessageSetItem(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()
368 bool WireFormat::ParseAndMergePartial(io::CodedInputStream* input, in ParseAndMergePartial()
424 io::CodedInputStream* input) { in ParseAndMergeField()
450 io::CodedInputStream::Limit limit = input->PushLimit(length); in ParseAndMergeField()
627 io::CodedInputStream* input, in ParseAndMergeMessageSetItem()
668 io::CodedInputStream sub_input(&raw_input); in ParseAndMergeMessageSetItem()
Dgenerated_message_util.h47 class CodedInputStream; // coded_stream.h variable
Dunknown_field_set.h113 bool MergeFromCodedStream(io::CodedInputStream* input);
114 bool ParseFromCodedStream(io::CodedInputStream* input);
/external/protobuf/java/src/main/java/com/google/protobuf/
DAbstractMessageLite.java106 public BuilderType mergeFrom(final CodedInputStream input) in mergeFrom()
113 final CodedInputStream input, in mergeFrom()
120 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
138 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
160 final CodedInputStream input = in mergeFrom()
161 CodedInputStream.newInstance(data, off, len); in mergeFrom()
186 final CodedInputStream input = in mergeFrom()
187 CodedInputStream.newInstance(data, off, len); in mergeFrom()
201 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
211 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
[all …]
DUnknownFieldSet.java237 public static UnknownFieldSet parseFrom(final CodedInputStream input) in parseFrom()
458 public Builder mergeFrom(final CodedInputStream input) throws IOException { in mergeFrom()
473 public boolean mergeFieldFrom(final int tag, final CodedInputStream input) in mergeFieldFrom()
510 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
531 final CodedInputStream input = CodedInputStream.newInstance(data); in mergeFrom()
550 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
562 final int size = CodedInputStream.readRawVarint32(firstByte, input); in mergeDelimitedFrom()
576 CodedInputStream input, in mergeFrom()
593 final CodedInputStream input = in mergeFrom()
594 CodedInputStream.newInstance(data, off, len); in mergeFrom()
DCodedInputStream.java50 public final class CodedInputStream { class
54 public static CodedInputStream newInstance(final InputStream input) { in newInstance()
55 return new CodedInputStream(input); in newInstance()
61 public static CodedInputStream newInstance(final byte[] buf) { in newInstance()
68 public static CodedInputStream newInstance(final byte[] buf, final int off, in newInstance()
70 return new CodedInputStream(buf, off, len); in newInstance()
509 private CodedInputStream(final byte[] buffer, final int off, final int len) { in CodedInputStream() method in CodedInputStream
517 private CodedInputStream(final InputStream input) { in CodedInputStream() method in CodedInputStream
DMessageLite.java221 Builder mergeFrom(CodedInputStream input) throws IOException; in mergeFrom()
229 Builder mergeFrom(CodedInputStream input, in mergeFrom()
DMessage.java189 Builder mergeFrom(CodedInputStream input) throws IOException; in mergeFrom()
190 Builder mergeFrom(CodedInputStream input, in mergeFrom()
DAbstractMessage.java242 public BuilderType mergeFrom(final CodedInputStream input) in mergeFrom()
249 final CodedInputStream input, in mergeFrom()
279 final CodedInputStream input, in mergeFieldFrom()
429 final CodedInputStream input, in mergeMessageSetExtensionFromCodedStream()
490 CodedInputStream.newInstance(rawBytes.newInput())); in mergeMessageSetExtensionFromCodedStream()
DByteString.java304 public CodedInputStream newCodedInput() { in newCodedInput()
307 return CodedInputStream.newInstance(bytes); in newCodedInput()

12