Home
last modified time | relevance | path

Searched refs:ParsingPrimitives (Results 1 – 12 of 12) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf/
DParseContext.cs142 return ParsingPrimitives.ParseTag(ref buffer, ref state); in ReadTag()
151 return ParsingPrimitives.ParseDouble(ref buffer, ref state); in ReadDouble()
160 return ParsingPrimitives.ParseFloat(ref buffer, ref state); in ReadFloat()
169 return ParsingPrimitives.ParseRawVarint64(ref buffer, ref state); in ReadUInt64()
178 return (long)ParsingPrimitives.ParseRawVarint64(ref buffer, ref state); in ReadInt64()
187 return (int)ParsingPrimitives.ParseRawVarint32(ref buffer, ref state); in ReadInt32()
196 return ParsingPrimitives.ParseRawLittleEndian64(ref buffer, ref state); in ReadFixed64()
205 return ParsingPrimitives.ParseRawLittleEndian32(ref buffer, ref state); in ReadFixed32()
214 return ParsingPrimitives.ParseRawVarint64(ref buffer, ref state) != 0; in ReadBool()
222 return ParsingPrimitives.ReadString(ref buffer, ref state); in ReadString()
[all …]
DCodedInputStream.cs306 return ParsingPrimitives.PeekTag(ref span, ref state); in PeekTag()
321 return ParsingPrimitives.ParseTag(ref span, ref state); in ReadTag()
358 return ParsingPrimitives.ParseDouble(ref span, ref state); in ReadDouble()
367 return ParsingPrimitives.ParseFloat(ref span, ref state); in ReadFloat()
424 return ParsingPrimitives.ReadString(ref span, ref state); in ReadString()
472 return ParsingPrimitives.ReadBytes(ref span, ref state); in ReadBytes()
513 return ParsingPrimitives.DecodeZigZag32(ReadRawVarint32()); in ReadSInt32()
521 return ParsingPrimitives.DecodeZigZag64(ReadRawVarint64()); in ReadSInt64()
534 return ParsingPrimitives.ParseLength(ref span, ref state); in ReadLength()
545 return ParsingPrimitives.MaybeConsumeTag(ref span, ref state, tag); in MaybeConsumeTag()
[all …]
DParsingPrimitivesWrappers.cs71 return ParsingPrimitives.ParseFloat(ref buffer, ref state); in ReadFloatWrapperLittleEndian()
81 int length = ParsingPrimitives.ParseLength(ref buffer, ref state); in ReadFloatWrapperSlow()
91 if (ParsingPrimitives.ParseTag(ref buffer, ref state) == 13) in ReadFloatWrapperSlow()
93 result = ParsingPrimitives.ParseFloat(ref buffer, ref state); in ReadFloatWrapperSlow()
123 return ParsingPrimitives.ParseDouble(ref buffer, ref state); in ReadDoubleWrapperLittleEndian()
133 int length = ParsingPrimitives.ParseLength(ref buffer, ref state); in ReadDoubleWrapperSlow()
143 if (ParsingPrimitives.ParseTag(ref buffer, ref state) == 9) in ReadDoubleWrapperSlow()
145 result = ParsingPrimitives.ParseDouble(ref buffer, ref state); in ReadDoubleWrapperSlow()
186 var result = ParsingPrimitives.ParseRawVarint32(ref buffer, ref state); in ReadUInt32Wrapper()
203 int length = ParsingPrimitives.ParseLength(ref buffer, ref state); in ReadUInt32WrapperSlow()
[all …]
DParsingPrimitivesMessages.cs62 ParsingPrimitives.ParseRawLittleEndian32(ref buffer, ref state); in SkipLastField()
65 ParsingPrimitives.ParseRawLittleEndian64(ref buffer, ref state); in SkipLastField()
68 var length = ParsingPrimitives.ParseLength(ref buffer, ref state); in SkipLastField()
69 ParsingPrimitives.SkipRawBytes(ref buffer, ref state, length); in SkipLastField()
72 ParsingPrimitives.ParseRawVarint32(ref buffer, ref state); in SkipLastField()
92 tag = ParsingPrimitives.ParseTag(ref buffer, ref state); in SkipGroup()
117 int length = ParsingPrimitives.ParseLength(ref ctx.buffer, ref ctx.state); in ReadMessage()
DParsingPrimitives.cs51 internal static class ParsingPrimitives class
105 state.lastTag = ParsingPrimitives.ParseRawVarint32(ref buffer, ref state); in ParseTag()
117 state.lastTag = ParsingPrimitives.ParseRawVarint32(ref buffer, ref state); in ParseTag()
560 int length = ParsingPrimitives.ParseLength(ref buffer, ref state); in ReadString()
561 return ParsingPrimitives.ReadRawString(ref buffer, ref state, length); in ReadString()
570 int length = ParsingPrimitives.ParseLength(ref buffer, ref state); in ReadBytes()
571 … return ByteString.AttachBytes(ParsingPrimitives.ReadRawBytes(ref buffer, ref state, length)); in ReadBytes()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs204 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(0)); in DecodeZigZag32()
205 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(1)); in DecodeZigZag32()
206 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(2)); in DecodeZigZag32()
207 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag32(3)); in DecodeZigZag32()
208 Assert.AreEqual(0x3FFFFFFF, ParsingPrimitives.DecodeZigZag32(0x7FFFFFFE)); in DecodeZigZag32()
209 … Assert.AreEqual(unchecked((int) 0xC0000000), ParsingPrimitives.DecodeZigZag32(0x7FFFFFFF)); in DecodeZigZag32()
210 Assert.AreEqual(0x7FFFFFFF, ParsingPrimitives.DecodeZigZag32(0xFFFFFFFE)); in DecodeZigZag32()
211 … Assert.AreEqual(unchecked((int) 0x80000000), ParsingPrimitives.DecodeZigZag32(0xFFFFFFFF)); in DecodeZigZag32()
217 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(0)); in DecodeZigZag64()
218 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(1)); in DecodeZigZag64()
[all …]
DCodedOutputStreamTest.cs250 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(0))); in RoundTripZigZag32()
251 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(1))); in RoundTripZigZag32()
252 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-1))); in RoundTripZigZag32()
253 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(14927))); in RoundTripZigZag32()
254 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-3612))); in RoundTripZigZag32()
260 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(0))); in RoundTripZigZag64()
261 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(1))); in RoundTripZigZag64()
262 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-1))); in RoundTripZigZag64()
263 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(14927))); in RoundTripZigZag64()
264 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-3612))); in RoundTripZigZag64()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs344 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(0))); in RoundTripZigZag32()
345 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(1))); in RoundTripZigZag32()
346 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-1))); in RoundTripZigZag32()
347 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(14927))); in RoundTripZigZag32()
348 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-3612))); in RoundTripZigZag32()
354 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(0))); in RoundTripZigZag64()
355 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(1))); in RoundTripZigZag64()
356 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-1))); in RoundTripZigZag64()
357 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(14927))); in RoundTripZigZag64()
358 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-3612))); in RoundTripZigZag64()
[all …]
DCodedInputStreamTest.cs285 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(0)); in DecodeZigZag32()
286 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(1)); in DecodeZigZag32()
287 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(2)); in DecodeZigZag32()
288 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag32(3)); in DecodeZigZag32()
289 Assert.AreEqual(0x3FFFFFFF, ParsingPrimitives.DecodeZigZag32(0x7FFFFFFE)); in DecodeZigZag32()
290 … Assert.AreEqual(unchecked((int) 0xC0000000), ParsingPrimitives.DecodeZigZag32(0x7FFFFFFF)); in DecodeZigZag32()
291 Assert.AreEqual(0x7FFFFFFF, ParsingPrimitives.DecodeZigZag32(0xFFFFFFFE)); in DecodeZigZag32()
292 … Assert.AreEqual(unchecked((int) 0x80000000), ParsingPrimitives.DecodeZigZag32(0xFFFFFFFF)); in DecodeZigZag32()
298 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(0)); in DecodeZigZag64()
299 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(1)); in DecodeZigZag64()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/Collections/
DRepeatedField.cs136 …if (codec.FixedSize > 0 && length % codec.FixedSize == 0 && ParsingPrimitives.IsDataAvailable(ref … in AddEntriesFrom()
166 } while (ParsingPrimitives.MaybeConsumeTag(ref ctx.buffer, ref ctx.state, tag)); in AddEntriesFrom()
DMapField.cs457 … } while (ParsingPrimitives.MaybeConsumeTag(ref ctx.buffer, ref ctx.state, codec.MapTag)); in AddEntriesFrom()
/third_party/protobuf/
DMakefile.am211 csharp/src/Google.Protobuf/ParsingPrimitives.cs \