Home
last modified time | relevance | path

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

123456

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DCodedInputStreamTest.java94 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarint()
97 input = CodedInputStream.newInstance(data); in assertReadVarint()
103 input = CodedInputStream.newInstance( in assertReadVarint()
107 input = CodedInputStream.newInstance( in assertReadVarint()
129 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarintFailure()
137 input = CodedInputStream.newInstance(data); in assertReadVarintFailure()
182 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadLittleEndian32()
188 input = CodedInputStream.newInstance( in assertReadLittleEndian32()
201 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadLittleEndian64()
207 input = CodedInputStream.newInstance( in assertReadLittleEndian64()
[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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs62 CodedInputStream input = new CodedInputStream(data); in AssertReadVarint()
65 input = new CodedInputStream(data); in AssertReadVarint()
72 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
75 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
87 Assert.AreEqual((uint) value, CodedInputStream.ReadRawVarint32(memoryStream)); in AssertReadVarint()
98 CodedInputStream input = new CodedInputStream(data); in AssertReadVarintFailure()
102 input = new CodedInputStream(data); in AssertReadVarintFailure()
107 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
155 CodedInputStream input = new CodedInputStream(data); in AssertReadLittleEndian32()
162 input = new CodedInputStream( in AssertReadLittleEndian32()
[all …]
DCodedOutputStreamTest.cs250 … Assert.AreEqual(0, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(0))); in RoundTripZigZag32()
251 … Assert.AreEqual(1, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(1))); in RoundTripZigZag32()
252 … Assert.AreEqual(-1, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(-1))); in RoundTripZigZag32()
253 … Assert.AreEqual(14927, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(14927))); in RoundTripZigZag32()
254 … Assert.AreEqual(-3612, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(-3612))); in RoundTripZigZag32()
260 … Assert.AreEqual(0, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(0))); in RoundTripZigZag64()
261 … Assert.AreEqual(1, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(1))); in RoundTripZigZag64()
262 … Assert.AreEqual(-1, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(-1))); in RoundTripZigZag64()
263 … Assert.AreEqual(14927, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(14927))); in RoundTripZigZag64()
264 … Assert.AreEqual(-3612, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(-3612))); in RoundTripZigZag64()
[all …]
DCodedInputStreamExtensions.cs39 public static void AssertNextTag(this CodedInputStream input, uint expectedTag) in AssertNextTag()
45 public static T ReadMessage<T>(this CodedInputStream stream, MessageParser<T> parser)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java95 private void assertDataConsumed(byte[] data, CodedInputStream input) in assertDataConsumed()
106 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarint()
110 input = CodedInputStream.newInstance(data); in assertReadVarint()
114 input = CodedInputStream.newInstance(data); in assertReadVarint()
118 input = CodedInputStream.newInstance(data); in assertReadVarint()
124 input = CodedInputStream.newInstance( in assertReadVarint()
129 input = CodedInputStream.newInstance( in assertReadVarint()
134 input = CodedInputStream.newInstance( in assertReadVarint()
139 input = CodedInputStream.newInstance( in assertReadVarint()
151 assertEquals((int) value, CodedInputStream.readRawVarint32(rawInput)); in assertReadVarint()
[all …]
DUnknownFieldSetLiteTest.java63 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray()); in testMergeFieldFrom()
76 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray()); in testSerializedSize()
88 CodedInputStream input = in testMergeVarintField()
89 CodedInputStream.newInstance(toByteString(unknownFields).toByteArray()); in testMergeVarintField()
102 CodedInputStream input = in testMergeVarintField_negative()
103 CodedInputStream.newInstance(toByteString(builder).toByteArray()); in testMergeVarintField_negative()
131 CodedInputStream input = in testMutableCopyOf()
132 CodedInputStream.newInstance(toByteString(unknownFields).toByteArray()); in testMutableCopyOf()
274 unknownFields.mergeFieldFrom(1, CodedInputStream.newInstance(new byte[0])); in testMakeImmutable()
DCodedOutputStreamTest.java295 assertEquals(0, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(0))); in testEncodeZigZag()
296 assertEquals(1, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(1))); in testEncodeZigZag()
297 assertEquals(-1, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-1))); in testEncodeZigZag()
298 assertEquals(14927, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(14927))); in testEncodeZigZag()
299 assertEquals(-3612, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-3612))); in testEncodeZigZag()
301 assertEquals(0, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(0))); in testEncodeZigZag()
302 assertEquals(1, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(1))); in testEncodeZigZag()
303 assertEquals(-1, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-1))); in testEncodeZigZag()
304 assertEquals(14927, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(14927))); in testEncodeZigZag()
305 assertEquals(-3612, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-3612))); in testEncodeZigZag()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/io/
Dcoded_stream.h145 class CodedInputStream; variable
159 class LIBPROTOBUF_EXPORT CodedInputStream {
162 explicit CodedInputStream(ZeroCopyInputStream* input);
167 explicit CodedInputStream(const uint8* buffer, int size);
174 ~CodedInputStream();
419 std::pair<CodedInputStream::Limit, int> IncrementRecursionDepthAndPushLimit(
521 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CodedInputStream);
905 inline bool CodedInputStream::ReadVarint32(uint32* value) { in ReadVarint32()
920 inline bool CodedInputStream::ReadVarint64(uint64* value) { in ReadVarint64()
931 inline bool CodedInputStream::ReadVarintSizeAsInt(int* value) { in ReadVarintSizeAsInt()
[all …]
Dcoded_stream.cc75 CodedInputStream::~CodedInputStream() { in ~CodedInputStream()
86 int CodedInputStream::default_recursion_limit_ = 100;
93 void CodedInputStream::BackUpInputToCurrentPosition() { in BackUpInputToCurrentPosition()
106 inline void CodedInputStream::RecomputeBufferLimits() { in RecomputeBufferLimits()
119 CodedInputStream::Limit CodedInputStream::PushLimit(int byte_limit) { in PushLimit()
144 void CodedInputStream::PopLimit(Limit limit) { in PopLimit()
155 std::pair<CodedInputStream::Limit, int>
156 CodedInputStream::IncrementRecursionDepthAndPushLimit(int byte_limit) { in IncrementRecursionDepthAndPushLimit()
160 CodedInputStream::Limit CodedInputStream::ReadLengthAndPushLimit() { in ReadLengthAndPushLimit()
165 bool CodedInputStream::DecrementRecursionDepthAndPopLimit(Limit limit) { in DecrementRecursionDepthAndPopLimit()
[all …]
Dcoded_stream_unittest.cc197 CodedInputStream coded_input(&input); in TEST_2D()
212 CodedInputStream coded_input(&input); in TEST_2D()
246 CodedInputStream input(&in); in TEST_F()
259 CodedInputStream coded_input(&input); in TEST_1D()
293 CodedInputStream::ExpectTagFromArray(buffer_, in TEST_1D()
296 CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); in TEST_1D()
299 CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); in TEST_1D()
308 CodedInputStream coded_input(&input); in TEST_2D()
392 CodedInputStream coded_input(&input); in TEST_2D()
442 CodedInputStream coded_input(&input); in TEST_2D()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
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,
143 static bool ReadPackedEnumPreserveUnknowns(io::CodedInputStream* input,
197 io::CodedInputStream* input);
215 io::CodedInputStream* input,
251 static bool SkipMessageSetField(io::CodedInputStream* input,
259 io::CodedInputStream* input);
272 virtual bool SkipField(io::CodedInputStream* input, uint32 tag);
[all …]
Dmessage_lite.cc104 io::CodedInputStream* input, MessageLite* message);
106 io::CodedInputStream* input, MessageLite* message);
108 io::CodedInputStream* input, MessageLite* message);
114 inline bool InlineMergeFromCodedStream(io::CodedInputStream* input, in InlineMergeFromCodedStream()
124 inline bool InlineParseFromCodedStream(io::CodedInputStream* input, in InlineParseFromCodedStream()
130 inline bool InlineParsePartialFromCodedStream(io::CodedInputStream* input, in InlineParsePartialFromCodedStream()
138 io::CodedInputStream input(reinterpret_cast<const uint8*>(data), size); in InlineParseFromArray()
145 io::CodedInputStream input(reinterpret_cast<const uint8*>(data), size); in InlineParsePartialFromArray()
161 bool MessageLite::MergeFromCodedStream(io::CodedInputStream* input) { in MergeFromCodedStream()
165 bool MessageLite::ParseFromCodedStream(io::CodedInputStream* input) { in ParseFromCodedStream()
[all …]
Dwire_format_lite_inl.h62 io::CodedInputStream* input,
71 io::CodedInputStream* input,
80 io::CodedInputStream* input,
86 io::CodedInputStream* input,
92 io::CodedInputStream* input,
101 io::CodedInputStream* input,
110 io::CodedInputStream* input,
116 io::CodedInputStream* input,
122 io::CodedInputStream* input,
131 io::CodedInputStream* input,
[all …]
Dwire_format_lite.cc122 io::CodedInputStream* input, uint32 tag) { in SkipField()
167 io::CodedInputStream* input, uint32 tag, io::CodedOutputStream* output) { in SkipField()
223 bool WireFormatLite::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
242 bool WireFormatLite::SkipMessage(io::CodedInputStream* input, in SkipMessage()
264 io::CodedInputStream* input, uint32 tag) { in SkipField()
268 bool FieldSkipper::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
278 io::CodedInputStream* input, uint32 tag) { in SkipField()
282 bool CodedOutputStreamFieldSkipper::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
292 bool WireFormatLite::ReadPackedEnumNoInline(io::CodedInputStream* input, in ReadPackedEnumNoInline()
297 io::CodedInputStream::Limit limit = input->PushLimit(length); in ReadPackedEnumNoInline()
[all …]
Dmessage_lite.h49 class CodedInputStream; variable
144 bool ParseFromCodedStream(io::CodedInputStream* input);
147 bool ParsePartialFromCodedStream(io::CodedInputStream* input);
189 bool MergeFromCodedStream(io::CodedInputStream* input);
196 virtual bool MergePartialFromCodedStream(io::CodedInputStream* input) = 0;
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
556 google::protobuf::io::CodedInputStream* input,
561 static bool ReadPackedFixedSizePrimitive(google::protobuf::io::CodedInputStream* input,
580 virtual bool SkipField(io::CodedInputStream* input, uint32 tag);
584 virtual bool SkipMessage(io::CodedInputStream* input);
601 virtual bool SkipField(io::CodedInputStream* input, uint32 tag);
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DAbstractMessageLite.java140 public BuilderType mergeFrom(final CodedInputStream input) throws IOException { in mergeFrom()
147 final CodedInputStream input, final ExtensionRegistryLite extensionRegistry) in mergeFrom()
153 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
169 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
189 final CodedInputStream input = in mergeFrom()
190 CodedInputStream.newInstance(data, off, len); in mergeFrom()
215 final CodedInputStream input = in mergeFrom()
216 CodedInputStream.newInstance(data, off, len); in mergeFrom()
229 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
238 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
[all …]
DAbstractParser.java82 public MessageType parsePartialFrom(CodedInputStream input) in parsePartialFrom()
88 public MessageType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parseFrom()
95 public MessageType parseFrom(CodedInputStream input) throws InvalidProtocolBufferException { in parseFrom()
104 CodedInputStream input = data.newCodedInput(); in parsePartialFrom()
138 CodedInputStream input = CodedInputStream.newInstance(data, off, len); in parsePartialFrom()
196 CodedInputStream codedInput = CodedInputStream.newInstance(input); in parsePartialFrom()
233 size = CodedInputStream.readRawVarint32(firstByte, input); in parsePartialDelimitedFrom()
DParser.java62 public MessageType parseFrom(CodedInputStream input) in parseFrom()
71 public MessageType parseFrom(CodedInputStream input, in parseFrom()
80 public MessageType parsePartialFrom(CodedInputStream input) in parsePartialFrom()
88 public MessageType parsePartialFrom(CodedInputStream input, in parsePartialFrom()
DWireFormat.java182 Object readString(CodedInputStream input) throws IOException { in readString()
189 Object readString(CodedInputStream input) throws IOException { in readString()
196 Object readString(CodedInputStream input) throws IOException { in readString()
202 abstract Object readString(CodedInputStream input) throws IOException; in readString()
220 CodedInputStream input, in readPrimitiveField()
DUnknownFieldSet.java248 public static UnknownFieldSet parseFrom(final CodedInputStream input) in parseFrom()
507 public Builder mergeFrom(final CodedInputStream input) throws IOException { in mergeFrom()
522 public boolean mergeFieldFrom(final int tag, final CodedInputStream input) in mergeFieldFrom()
559 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
580 final CodedInputStream input = CodedInputStream.newInstance(data); in mergeFrom()
600 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
612 final int size = CodedInputStream.readRawVarint32(firstByte, input); in mergeDelimitedFrom()
626 public Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in mergeFrom()
642 final CodedInputStream input = in mergeFrom()
643 CodedInputStream.newInstance(data, off, len); in mergeFrom()
[all …]
DCodedInputStream.java53 public final class CodedInputStream { class
57 public static CodedInputStream newInstance(final InputStream input) { in newInstance()
58 return new CodedInputStream(input, BUFFER_SIZE); in newInstance()
64 static CodedInputStream newInstance(final InputStream input, int bufferSize) { in newInstance()
65 return new CodedInputStream(input, bufferSize); in newInstance()
71 public static CodedInputStream newInstance(final byte[] buf) { in newInstance()
78 public static CodedInputStream newInstance(final byte[] buf, final int off, in newInstance()
86 static CodedInputStream newInstance( in newInstance()
88 CodedInputStream result = new CodedInputStream(buf, off, len, bufferIsImmutable); in newInstance()
119 public static CodedInputStream newInstance(ByteBuffer buf) { in newInstance()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DMessageExtensions.cs51 CodedInputStream input = new CodedInputStream(data); in MergeFrom()
65 CodedInputStream input = data.CreateCodedInput(); in MergeFrom()
79 CodedInputStream codedInput = new CodedInputStream(input); in MergeFrom()
97 int size = (int) CodedInputStream.ReadRawVarint32(input); in MergeDelimitedFrom()
/frameworks/base/tools/aapt2/format/
DContainer.cpp25 using ::google::protobuf::io::CodedInputStream;
160 static bool AlignRead(CodedInputStream* in) { in AlignRead()
183 CodedInputStream& coded_in = reader_->coded_in_; in GetResTable()
185 const CodedInputStream::Limit limit = coded_in.PushLimit(static_cast<int>(length_)); in GetResTable()
199 CodedInputStream& coded_in = reader_->coded_in_; in GetResFileOffsets()
233 const CodedInputStream::Limit limit = coded_in.PushLimit(static_cast<int>(header_length)); in GetResFileOffsets()

123456