Home
last modified time | relevance | path

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

1234567

/third_party/protobuf/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 …]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/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 …]
/third_party/protobuf/php/tests/
DPhpImplementationTest.php10 use Google\Protobuf\Internal\CodedInputStream; alias
35 $input = new CodedInputStream(hex2bin("01"));
40 $input = new CodedInputStream(hex2bin("ffffffff0f"));
45 $input = new CodedInputStream(hex2bin("ffffffff7f"));
55 $input = new CodedInputStream(hex2bin("01"));
60 $input = new CodedInputStream(hex2bin("ffffffff0f"));
65 $input = new CodedInputStream(hex2bin("ffffffff7f"));
75 $input = new CodedInputStream(hex2bin("01"));
80 $input = new CodedInputStream(hex2bin("ffffffffffffffffff01"));
85 $input = new CodedInputStream(hex2bin("ffffffffffffffffff0f"));
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java62 CodedInputStream newDecoder(byte[] data, int blockSize) { in newDecoder()
63 return CodedInputStream.newInstance(data); in newDecoder()
68 CodedInputStream newDecoder(byte[] data, int blockSize) { in newDecoder()
69 return CodedInputStream.newInstance(ByteBuffer.wrap(data)); in newDecoder()
74 CodedInputStream newDecoder(byte[] data, int blockSize) { in newDecoder()
78 return CodedInputStream.newInstance(buffer); in newDecoder()
83 CodedInputStream newDecoder(byte[] data, int blockSize) { in newDecoder()
84 return CodedInputStream.newInstance(new SmallBlockInputStream(data, blockSize)); in newDecoder()
89 CodedInputStream newDecoder(byte[] data, int blockSize) { in newDecoder()
101 return CodedInputStream.newInstance(input); in newDecoder()
[all …]
DCodedOutputStreamTest.java318 assertEquals(0, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(0))); in testEncodeZigZag()
319 assertEquals(1, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(1))); in testEncodeZigZag()
320 assertEquals(-1, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-1))); in testEncodeZigZag()
321 assertEquals(14927, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(14927))); in testEncodeZigZag()
322 assertEquals(-3612, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-3612))); in testEncodeZigZag()
324 assertEquals(0, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(0))); in testEncodeZigZag()
325 assertEquals(1, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(1))); in testEncodeZigZag()
326 assertEquals(-1, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-1))); in testEncodeZigZag()
327 assertEquals(14927, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(14927))); in testEncodeZigZag()
328 assertEquals(-3612, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-3612))); in testEncodeZigZag()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs64 CodedInputStream input = new CodedInputStream(data); in AssertReadVarint()
68 input = new CodedInputStream(data); in AssertReadVarint()
85 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
88 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
110 Assert.AreEqual((uint) value, CodedInputStream.ReadRawVarint32(memoryStream)); in AssertReadVarint()
121 CodedInputStream input = new CodedInputStream(data); in AssertReadVarintFailure()
125 input = new CodedInputStream(data); in AssertReadVarintFailure()
156 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
216 CodedInputStream input = new CodedInputStream(data); in AssertReadLittleEndian32()
228 input = new CodedInputStream( in AssertReadLittleEndian32()
[all …]
DUnknownFieldSetTest.cs176 assertFull(retainingParser1.ParseFrom(new CodedInputStream(data))); in TestDiscardUnknownFields()
177 assertFull(retainingParser2.ParseFrom(new CodedInputStream(data))); in TestDiscardUnknownFields()
178 assertEmpty(discardingParser1.ParseFrom(new CodedInputStream(data))); in TestDiscardUnknownFields()
179 assertEmpty(discardingParser2.ParseFrom(new CodedInputStream(data))); in TestDiscardUnknownFields()
200 CodedInputStream input = new CodedInputStream(ms); in TestReadInvalidWireTypeThrowsInvalidProtocolBufferException()
/third_party/protobuf/src/google/protobuf/io/
Dcoded_stream_unittest.cc196 CodedInputStream coded_input(&input); in TEST_2D()
211 CodedInputStream coded_input(&input); in TEST_2D()
244 CodedInputStream input(&in); in TEST_F()
257 CodedInputStream coded_input(&input); in TEST_1D()
290 EXPECT_TRUE(NULL == CodedInputStream::ExpectTagFromArray( in TEST_1D()
293 CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); in TEST_1D()
296 CodedInputStream::ExpectTagFromArray(buffer_, expected_value)); in TEST_1D()
305 CodedInputStream coded_input(&input); in TEST_2D()
387 CodedInputStream coded_input(&input); in TEST_2D()
438 CodedInputStream coded_input(&input); in TEST_2D()
[all …]
Dcoded_stream.cc82 CodedInputStream::~CodedInputStream() { in ~CodedInputStream()
89 int CodedInputStream::default_recursion_limit_ = 100;
92 void CodedInputStream::BackUpInputToCurrentPosition() { in BackUpInputToCurrentPosition()
105 inline void CodedInputStream::RecomputeBufferLimits() { in RecomputeBufferLimits()
118 CodedInputStream::Limit CodedInputStream::PushLimit(int byte_limit) { in PushLimit()
137 void CodedInputStream::PopLimit(Limit limit) { in PopLimit()
148 std::pair<CodedInputStream::Limit, int>
149 CodedInputStream::IncrementRecursionDepthAndPushLimit(int byte_limit) { in IncrementRecursionDepthAndPushLimit()
153 CodedInputStream::Limit CodedInputStream::ReadLengthAndPushLimit() { in ReadLengthAndPushLimit()
158 bool CodedInputStream::DecrementRecursionDepthAndPopLimit(Limit limit) { in DecrementRecursionDepthAndPopLimit()
[all …]
Dcoded_stream.h165 class CodedInputStream; variable
181 class PROTOBUF_EXPORT CodedInputStream {
184 explicit CodedInputStream(ZeroCopyInputStream* input);
189 explicit CodedInputStream(const uint8* buffer, int size);
196 ~CodedInputStream();
434 std::pair<CodedInputStream::Limit, int> IncrementRecursionDepthAndPushLimit(
536 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CodedInputStream);
1270 inline bool CodedInputStream::ReadVarint32(uint32* value) { in ReadVarint32()
1285 inline bool CodedInputStream::ReadVarint64(uint64* value) { in ReadVarint64()
1296 inline bool CodedInputStream::ReadVarintSizeAsInt(int* value) { in ReadVarintSizeAsInt()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/
DParseRawPrimitivesBenchmark.cs112 CodedInputStream cis = new CodedInputStream(varintInputBuffers[encodedSize]); in ParseRawVarint32_CodedInputStream()
151 CodedInputStream cis = new CodedInputStream(varintInputBuffers[encodedSize]); in ParseRawVarint64_CodedInputStream()
186 CodedInputStream cis = new CodedInputStream(fixedIntInputBuffer); in ParseFixed32_CodedInputStream()
212 CodedInputStream cis = new CodedInputStream(fixedIntInputBuffer); in ParseFixed64_CodedInputStream()
238 CodedInputStream cis = new CodedInputStream(floatInputBuffer); in ParseRawFloat_CodedInputStream()
264 CodedInputStream cis = new CodedInputStream(doubleInputBuffer); in ParseRawDouble_CodedInputStream()
290 CodedInputStream cis = new CodedInputStream(stringInputBuffers[encodedSize]); in ParseString_CodedInputStream()
329 CodedInputStream cis = new CodedInputStream(stringInputBuffers[encodedSize]); in ParseBytes_CodedInputStream()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DAbstractParser.java78 public MessageType parsePartialFrom(CodedInputStream input) in parsePartialFrom()
84 public MessageType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parseFrom()
90 public MessageType parseFrom(CodedInputStream input) throws InvalidProtocolBufferException { in parseFrom()
99 CodedInputStream input = data.newCodedInput(); in parsePartialFrom()
133 CodedInputStream input = CodedInputStream.newInstance(data); in parseFrom()
157 CodedInputStream input = CodedInputStream.newInstance(data, off, len); in parsePartialFrom()
214 CodedInputStream codedInput = CodedInputStream.newInstance(input); in parsePartialFrom()
250 size = CodedInputStream.readRawVarint32(firstByte, input); in parsePartialDelimitedFrom()
DAbstractMessageLite.java172 public BuilderType mergeFrom(final CodedInputStream input) throws IOException { in mergeFrom()
179 final CodedInputStream input, final ExtensionRegistryLite extensionRegistry) in mergeFrom()
185 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
201 final CodedInputStream input = data.newCodedInput(); in mergeFrom()
221 final CodedInputStream input = CodedInputStream.newInstance(data, off, len); in mergeFrom()
246 final CodedInputStream input = CodedInputStream.newInstance(data, off, len); in mergeFrom()
259 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
268 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
334 final int size = CodedInputStream.readRawVarint32(firstByte, input); in mergeDelimitedFrom()
DParser.java61 public MessageType parseFrom(CodedInputStream input) throws InvalidProtocolBufferException; in parseFrom()
68 public MessageType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parseFrom()
75 public MessageType parsePartialFrom(CodedInputStream input) throws InvalidProtocolBufferException; in parsePartialFrom()
82 CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parsePartialFrom()
DWireFormat.java192 Object readString(CodedInputStream input) throws IOException { in readString()
199 Object readString(CodedInputStream input) throws IOException { in readString()
206 Object readString(CodedInputStream input) throws IOException { in readString()
212 abstract Object readString(CodedInputStream input) throws IOException; in readString()
226 CodedInputStream input, FieldType type, Utf8Validation utf8Validation) throws IOException { in readPrimitiveField()
DUnknownFieldSet.java263 public static UnknownFieldSet parseFrom(CodedInputStream input) throws IOException { in parseFrom()
488 public Builder mergeFrom(CodedInputStream input) throws IOException { in mergeFrom()
504 public boolean mergeFieldFrom(int tag, CodedInputStream input) throws IOException { in mergeFieldFrom()
538 CodedInputStream input = data.newCodedInput(); in mergeFrom()
557 CodedInputStream input = CodedInputStream.newInstance(data); in mergeFrom()
575 CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
587 int size = CodedInputStream.readRawVarint32(firstByte, input); in mergeDelimitedFrom()
601 public Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in mergeFrom()
617 CodedInputStream input = CodedInputStream.newInstance(data, off, len); in mergeFrom()
1061 CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parsePartialFrom()
/third_party/protobuf/src/google/protobuf/
Dwire_format_lite.h181 static bool SkipField(io::CodedInputStream* input, uint32 tag);
186 static bool SkipField(io::CodedInputStream* input, uint32 tag,
192 static bool SkipMessage(io::CodedInputStream* input);
196 static bool SkipMessage(io::CodedInputStream* input,
257 PROTOBUF_ALWAYS_INLINE static bool ReadPrimitive(io::CodedInputStream* input,
265 int tag_size, uint32 tag, io::CodedInputStream* input,
272 io::CodedInputStream* input,
289 io::CodedInputStream* input, RepeatedField<CType>* value);
294 static bool ReadPackedPrimitiveNoInline(io::CodedInputStream* input,
299 static bool ReadPackedEnumNoInline(io::CodedInputStream* input,
[all …]
Dwire_format.h109 static bool ParseAndMergePartial(io::CodedInputStream* input,
150 static bool SkipField(io::CodedInputStream* input, uint32 tag,
155 static bool SkipMessage(io::CodedInputStream* input,
161 static bool ReadPackedEnumPreserveUnknowns(io::CodedInputStream* input,
228 Message* message, io::CodedInputStream* input);
249 static bool ParseAndMergeMessageSetItem(io::CodedInputStream* input,
288 static bool SkipMessageSetField(io::CodedInputStream* input,
296 io::CodedInputStream* input);
315 bool SkipField(io::CodedInputStream* input, uint32 tag) override;
316 bool SkipMessage(io::CodedInputStream* input) override;
Dmessage_lite.cc142 internal::ParseContext ctx(io::CodedInputStream::GetDefaultRecursionLimit(), in MergeFromImpl()
156 internal::ParseContext ctx(io::CodedInputStream::GetDefaultRecursionLimit(), in MergeFromImpl()
170 internal::ParseContext ctx(io::CodedInputStream::GetDefaultRecursionLimit(), in MergeFromImpl()
208 ZeroCopyCodedInputStream(io::CodedInputStream* cis) : cis_(cis) {} in ZeroCopyCodedInputStream()
221 io::CodedInputStream* cis_;
224 bool MessageLite::MergeFromImpl(io::CodedInputStream* input, in MergeFromImpl()
249 bool MessageLite::MergePartialFromCodedStream(io::CodedInputStream* input) { in MergePartialFromCodedStream()
253 bool MessageLite::MergeFromCodedStream(io::CodedInputStream* input) { in MergeFromCodedStream()
257 bool MessageLite::ParseFromCodedStream(io::CodedInputStream* input) { in ParseFromCodedStream()
262 bool MessageLite::ParsePartialFromCodedStream(io::CodedInputStream* input) { in ParsePartialFromCodedStream()
Dwire_format_lite.cc123 bool WireFormatLite::SkipField(io::CodedInputStream* input, uint32 tag) { in SkipField()
169 bool WireFormatLite::SkipField(io::CodedInputStream* input, uint32 tag, in SkipField()
228 bool WireFormatLite::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
247 bool WireFormatLite::SkipMessage(io::CodedInputStream* input, in SkipMessage()
268 bool FieldSkipper::SkipField(io::CodedInputStream* input, uint32 tag) { in SkipField()
272 bool FieldSkipper::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
280 bool CodedOutputStreamFieldSkipper::SkipField(io::CodedInputStream* input, in SkipField()
285 bool CodedOutputStreamFieldSkipper::SkipMessage(io::CodedInputStream* input) { in SkipMessage()
296 io::CodedInputStream* input, int field_number, bool (*is_valid)(int), in ReadPackedEnumPreserveUnknowns()
300 io::CodedInputStream::Limit limit = input->PushLimit(length); in ReadPackedEnumPreserveUnknowns()
[all …]
Dgenerated_message_table_driven.cc59 io::CodedInputStream* input, int tag) { in Skip()
75 io::CodedInputStream* input, int tag) { in ParseExtension()
96 io::CodedInputStream* input) { in MergePartialFromCodedStream()
/third_party/protobuf/csharp/src/Google.Protobuf/
DCodedInputStream.cs58 public sealed class CodedInputStream : IDisposable class
94 …public CodedInputStream(byte[] buffer) : this(null, ProtoPreconditions.CheckNotNull(buffer, "buffe… in CodedInputStream() method in Google.Protobuf.CodedInputStream
101 public CodedInputStream(byte[] buffer, int offset, int length) in CodedInputStream() method in Google.Protobuf.CodedInputStream
119 public CodedInputStream(Stream input) : this(input, false) in CodedInputStream() method in Google.Protobuf.CodedInputStream
130 public CodedInputStream(Stream input, bool leaveOpen) in CodedInputStream() method in Google.Protobuf.CodedInputStream
139 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, bool leaveOp… in CodedInputStream() method in Google.Protobuf.CodedInputStream
161 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, int sizeLimi… in CodedInputStream() method in Google.Protobuf.CodedInputStream
191 … public static CodedInputStream CreateWithLimits(Stream input, int sizeLimit, int recursionLimit) in CreateWithLimits()
194 … return new CodedInputStream(input, new byte[BufferSize], 0, 0, sizeLimit, recursionLimit, false); in CreateWithLimits()
DMessageExtensions.cs247 CodedInputStream input = new CodedInputStream(data); in MergeFrom()
258 CodedInputStream input = new CodedInputStream(data, offset, length); in MergeFrom()
269 CodedInputStream input = data.CreateCodedInput(); in MergeFrom()
280 CodedInputStream codedInput = new CodedInputStream(input); in MergeFrom()
301 int size = (int) CodedInputStream.ReadRawVarint32(input); in MergeDelimitedFrom()
DParserInternalState.cs103 internal CodedInputStream CodedInputStream => segmentedBufferHelper.CodedInputStream; field

1234567