<PackageReference Include="Google.Protobuf" Version="3.36.0-rc1" />

Google.Protobuf.ParsingPrimitives

static class ParsingPrimitives
Primitives for parsing protobuf wire format.
namespace Google.Protobuf { internal static class ParsingPrimitives { public static int ParseLength(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static uint ParseTag(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static bool MaybeConsumeTag(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, uint tag); public static uint PeekTag(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static ulong ParseRawVarint64(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static uint ParseRawVarint32(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static uint ParseRawLittleEndian32(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static ulong ParseRawLittleEndian64(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static double ParseDouble(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static float ParseFloat(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static byte[] ReadRawBytes(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, int size); public static void SkipRawBytes(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, int size); public static string ReadString(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static ByteString ReadBytes(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state); public static string ReadRawString(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, int length); public static uint ReadRawVarint32(Stream input); public static int DecodeZigZag32(uint n); public static long DecodeZigZag64(ulong n); public static bool IsDataAvailable(ref ParserInternalState state, int size); } }