Lines Matching defs:SegmentedBufferHelper
46 internal struct SegmentedBufferHelper struct
48 private int? totalLength;
50 private CodedInputStream codedInputStream;
58 …ublic static void Initialize(CodedInputStream codedInputStream, out SegmentedBufferHelper instance) in Initialize()
71 …dOnlySequence<byte> sequence, out SegmentedBufferHelper instance, out ReadOnlySpan<byte> firstSpan) in Initialize()
91 …c bool RefillBuffer(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillBuffer()
103 public int? TotalLength => totalLength;
105 public CodedInputStream CodedInputStream => codedInputStream;
113 public static int PushLimit(ref ParserInternalState state, int byteLimit) in PushLimit()
135 public static void PopLimit(ref ParserInternalState state, int oldLimit) in PopLimit()
145 public static bool IsReachedLimit(ref ParserInternalState state) in IsReachedLimit()
161 public static bool IsAtEnd(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state) in IsAtEnd()
166 …romReadOnlySequence(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillFromReadOnlySequence()
221 …romCodedInputStream(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillFromCodedInputStream()
272 private static void RecomputeBufferSizeAfterLimit(ref ParserInternalState state) in RecomputeBufferSizeAfterLimit()
288 private static void CheckCurrentBufferIsEmpty(ref ParserInternalState state) in CheckCurrentBufferIsEmpty()