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

Google.Protobuf.WireFormat

public static class WireFormat
This class is used internally by the Protocol Buffer Library and generated message implementations. It is public only for the sake of those generated messages. Others should not use this class directly.

This class contains constants and helper functions useful for dealing with the Protocol Buffer wire format.

public enum WireType

Wire types within protobuf encoding.

public static int GetTagFieldNumber(uint tag)

Given a tag value, determines the field number (the upper 29 bits).

public static WireType GetTagWireType(uint tag)

Given a tag value, determines the wire type (lower 3 bits).

public static uint MakeTag(int fieldNumber, WireType wireType)

Makes a tag value given a field number and wire type.