package
0.32.0
Repository: https://github.com/crowdstrike/csproto.git
Documentation: pkg.go.dev

# Functions

Decode extracts the specified field tags from data without unmarshaling the entire message.
NewDef initializes and returns a new Def with mappings for the specified field tags.

# Variables

ErrTagNotFound is returned by [PartialDecodeResult.FieldData] when the specified tag(s) do not exist in the result.

# Structs

DecodeResult holds a (possibly nested) mapping of integer field tags to FieldData instances which can be used to retrieve typed values for specific Protobuf message fields.
FieldData is a wrapper around lazily-decoded Protobuf field data, with accessors for retrieving typed values.

# Type aliases

A Def is an optionally nested mapping of protobuf field tags declaring which values should be decoded from a message.
RawValueConversionError is returned when the lazily-decoded value for a Protobuf field could not be converted to the requested Go type.
WireTypeMismatchError is returned when the actual type of a lazily decoded Protobuf field does not match one of the supported types.