package
2.0.0+incompatible
Repository: https://github.com/phpstudyer/protoreflect.git
Documentation: pkg.go.dev

# Functions

DecodeLengthDelimitedField extracts a properly-typed value from bytes.
DecodeScalarField extracts a properly-typed value from v.
DecodeZigZag32 decodes a signed 32-bit integer from the given zig-zag encoded value.
DecodeZigZag64 decodes a signed 64-bit integer from the given zig-zag encoded value.
EncodeZigZag32 does zig-zag encoding to convert the given signed 32-bit integer into a form that can be expressed efficiently as a varint, even for negative values.
EncodeZigZag64 does zig-zag encoding to convert the given signed 64-bit integer into a form that can be expressed efficiently as a varint, even for negative values.
NewBuffer creates a new buffer with the given slice of bytes as the buffer's initial contents.

# Variables

ErrBadWireType is returned when decoding a wire-type from a buffer that is not valid.
ErrOverflow is returned when an integer is too large to be represented.
ErrWireTypeEndGroup is returned from DecodeFieldValue if the tag and wire-type it reads indicates an end-group marker.

# Structs

UnknownField represents a field that was parsed from the binary wire format for a message, but was not a recognized field number.

# Interfaces

MessageFactory is used to instantiate messages when DecodeFieldValue needs to decode a message value.

# Type aliases

Buffer is a reader and a writer that wraps a slice of bytes and also provides API for decoding and encoding the protobuf binary format.