Home
last modified time | relevance | path

Searched refs:SegmentedBufferHelper (Results 1 - 9 of 9) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf/
H A DCodedInputStream.cs147 SegmentedBufferHelper.Initialize(this, out this.state.segmentedBufferHelper); in CodedInputStream()
616 return SegmentedBufferHelper.PushLimit(ref state, byteLimit); in PushLimit()
624 SegmentedBufferHelper.PopLimit(ref state, oldLimit); in PopLimit()
635 return SegmentedBufferHelper.IsReachedLimit(ref state);
649 return SegmentedBufferHelper.IsAtEnd(ref span, ref state);
H A DParsingPrimitivesMessages.cs122 int oldLimit = SegmentedBufferHelper.PushLimit(ref ctx.state, length); in ReadMessage()
129 if (!SegmentedBufferHelper.IsReachedLimit(ref ctx.state)) in ReadMessage()
134 SegmentedBufferHelper.PopLimit(ref ctx.state, oldLimit); in ReadMessage()
H A DSegmentedBufferHelper.cs46 internal struct SegmentedBufferHelper struct
58 public static void Initialize(CodedInputStream codedInputStream, out SegmentedBufferHelper instance) in Initialize()
71 public static void Initialize(ReadOnlySequence<byte> sequence, out SegmentedBufferHelper instance, out ReadOnlySpan<byte> firstSpan) in Initialize()
H A DParserInternalState.cs83 internal SegmentedBufferHelper segmentedBufferHelper;
H A DParseContext.cs99 SegmentedBufferHelper.Initialize(input, out ctx.state.segmentedBufferHelper, out ctx.buffer); in Initialize()
H A DFieldCodec.cs597 int oldLimit = SegmentedBufferHelper.PushLimit(ref ctx.state, length);
614 SegmentedBufferHelper.PopLimit(ref ctx.state, oldLimit);
H A DParsingPrimitives.cs111 if (SegmentedBufferHelper.IsAtEnd(ref buffer, ref state)) in ParseTag()
/third_party/protobuf/csharp/src/Google.Protobuf/Collections/
H A DRepeatedField.cs129 int oldLimit = SegmentedBufferHelper.PushLimit(ref ctx.state, length); in AddEntriesFrom()
140 while (!SegmentedBufferHelper.IsReachedLimit(ref ctx.state)) in AddEntriesFrom()
151 while (!SegmentedBufferHelper.IsReachedLimit(ref ctx.state)) in AddEntriesFrom()
156 SegmentedBufferHelper.PopLimit(ref ctx.state, oldLimit); in AddEntriesFrom()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
H A DCodedInputStreamTest.cs168 Assert.IsTrue(SegmentedBufferHelper.IsAtEnd(ref parseCtx.buffer, ref parseCtx.state)); in AssertReadFromParseContext()
408 SegmentedBufferHelper.PushLimit(ref ctx.state, 3); in ReadBlobGreaterThanCurrentLimit()
440 SegmentedBufferHelper.PushLimit(ref ctx.state, 3); in ReadStringGreaterThanCurrentLimit()

Completed in 10 milliseconds