Lines Matching refs:buffer
58 internal ReadOnlySpan<byte> buffer;
62 internal static void Initialize(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, out ParseContext ctx)
64 ctx.buffer = buffer;
76 ctx.buffer = new ReadOnlySpan<byte>(input.InternalBuffer);
92 ctx.buffer = default;
99 SegmentedBufferHelper.Initialize(input, out ctx.state.segmentedBufferHelper, out ctx.buffer);
101 ctx.state.bufferSize = ctx.buffer.Length;
142 return ParsingPrimitives.ParseTag(ref buffer, ref state);
151 return ParsingPrimitives.ParseDouble(ref buffer, ref state);
160 return ParsingPrimitives.ParseFloat(ref buffer, ref state);
169 return ParsingPrimitives.ParseRawVarint64(ref buffer, ref state);
178 return (long)ParsingPrimitives.ParseRawVarint64(ref buffer, ref state);
187 return (int)ParsingPrimitives.ParseRawVarint32(ref buffer, ref state);
196 return ParsingPrimitives.ParseRawLittleEndian64(ref buffer, ref state);
205 return ParsingPrimitives.ParseRawLittleEndian32(ref buffer, ref state);
214 return ParsingPrimitives.ParseRawVarint64(ref buffer, ref state) != 0;
222 return ParsingPrimitives.ReadString(ref buffer, ref state);
249 return ParsingPrimitives.ReadBytes(ref buffer, ref state);
257 return ParsingPrimitives.ParseRawVarint32(ref buffer, ref state);
267 return (int)ParsingPrimitives.ParseRawVarint32(ref buffer, ref state);
276 return (int)ParsingPrimitives.ParseRawLittleEndian32(ref buffer, ref state);
285 return (long)ParsingPrimitives.ParseRawLittleEndian64(ref buffer, ref state);
294 return ParsingPrimitives.DecodeZigZag32(ParsingPrimitives.ParseRawVarint32(ref buffer, ref state));
303 return ParsingPrimitives.DecodeZigZag64(ParsingPrimitives.ParseRawVarint64(ref buffer, ref state));
316 return (int)ParsingPrimitives.ParseRawVarint32(ref buffer, ref state);