Lines Matching defs:SegmentedBufferHelper
23 internal struct SegmentedBufferHelper struct
25 private int? totalLength;
27 private CodedInputStream codedInputStream;
35 …ublic static void Initialize(CodedInputStream codedInputStream, out SegmentedBufferHelper instance) in Initialize()
48 …dOnlySequence<byte> sequence, out SegmentedBufferHelper instance, out ReadOnlySpan<byte> firstSpan) in Initialize()
68 …c bool RefillBuffer(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillBuffer()
80 public int? TotalLength => totalLength;
82 public CodedInputStream CodedInputStream => codedInputStream;
90 public static int PushLimit(ref ParserInternalState state, int byteLimit) in PushLimit()
112 public static void PopLimit(ref ParserInternalState state, int oldLimit) in PopLimit()
122 public static bool IsReachedLimit(ref ParserInternalState state) in IsReachedLimit()
138 public static bool IsAtEnd(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state) in IsAtEnd()
143 …romReadOnlySequence(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillFromReadOnlySequence()
198 …romCodedInputStream(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillFromCodedInputStream()
249 private static void RecomputeBufferSizeAfterLimit(ref ParserInternalState state) in RecomputeBufferSizeAfterLimit()
265 private static void CheckCurrentBufferIsEmpty(ref ParserInternalState state) in CheckCurrentBufferIsEmpty()