package
1.36.5
Repository: https://go.googlesource.com/protobuf
Documentation: pkg.go.dev

# Functions

AppendBytes appends v to b as a length-prefixed bytes value.
AppendFixed32 appends v to b as a little-endian uint32.
AppendFixed64 appends v to b as a little-endian uint64.
AppendGroup appends v to b as group value, with a trailing end group marker.
AppendString appends v to b as a length-prefixed bytes value.
AppendTag encodes num and typ as a varint-encoded tag and appends it to b.
AppendVarint appends v to b as a varint-encoded uint64.
ConsumeBytes parses b as a length-prefixed bytes value, reporting its length.
ConsumeField parses an entire field record (both tag and value) and returns the field number, the wire type, and the total length.
ConsumeFieldValue parses a field value and returns its length.
ConsumeFixed32 parses b as a little-endian uint32, reporting its length.
ConsumeFixed64 parses b as a little-endian uint64, reporting its length.
ConsumeGroup parses b as a group value until the trailing end group marker, and verifies that the end marker matches the provided num.
ConsumeString parses b as a length-prefixed bytes value, reporting its length.
ConsumeTag parses b as a varint-encoded tag, reporting its length.
ConsumeVarint parses b as a varint-encoded uint64, reporting its length.
DecodeBool decodes a uint64 as a bool.
DecodeTag decodes the field [Number] and wire [Type] from its unified form.
DecodeZigZag decodes a zig-zag-encoded uint64 as an int64.
EncodeBool encodes a bool as a uint64.
EncodeTag encodes the field [Number] and wire [Type] into its unified form.
EncodeZigZag encodes an int64 as a zig-zag-encoded uint64.
ParseError converts an error code into an error value.
SizeBytes returns the encoded size of a length-prefixed bytes value, given only the length.
SizeFixed32 returns the encoded size of a fixed32; which is always 4.
SizeFixed64 returns the encoded size of a fixed64; which is always 8.
SizeGroup returns the encoded size of a group, given only the length.
No description provided by the author
SizeVarint returns the encoded size of a varint.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

Number represents the field number.
Type represents the wire type.