Versions in this module Expand all Collapse all v1 v1.0.1 Jun 30, 2026 v1.0.0 Jun 30, 2026 Changes in this version + func AppendBool(b []byte, v bool) []byte + func AppendBytes(b []byte, v []byte) []byte + func AppendDouble(b []byte, v float64) []byte + func AppendEnum(b []byte, v int32) []byte + func AppendFixed32(b []byte, v uint32) []byte + func AppendFixed64(b []byte, v uint64) []byte + func AppendFloat(b []byte, v float32) []byte + func AppendInt32(b []byte, v int32) []byte + func AppendInt64(b []byte, v int64) []byte + func AppendSfixed32(b []byte, v int32) []byte + func AppendSfixed64(b []byte, v int64) []byte + func AppendSint32(b []byte, v int32) []byte + func AppendSint64(b []byte, v int64) []byte + func AppendString(b []byte, v string) []byte + func AppendUint32(b []byte, v uint32) []byte + func AppendUint64(b []byte, v uint64) []byte + func ConsumeBool(b []byte) (bool, int) + func ConsumeBytes(b []byte) ([]byte, int) + func ConsumeDouble(b []byte) (float64, int) + func ConsumeEnum(b []byte) (int32, int) + func ConsumeFixed32(b []byte) (uint32, int) + func ConsumeFixed64(b []byte) (uint64, int) + func ConsumeFloat(b []byte) (float32, int) + func ConsumeInt32(b []byte) (int32, int) + func ConsumeInt64(b []byte) (int64, int) + func ConsumeSfixed32(b []byte) (int32, int) + func ConsumeSfixed64(b []byte) (int64, int) + func ConsumeSint32(b []byte) (int32, int) + func ConsumeSint64(b []byte) (int64, int) + func ConsumeString(b []byte) (string, int) + func ConsumeUint32(b []byte) (uint32, int) + func ConsumeUint64(b []byte) (uint64, int) + func DefaultValue(k Kind) any + func SizeBool(_ bool) int + func SizeBytes(v []byte) int + func SizeDouble(float64) int + func SizeEnum(v int32) int + func SizeFixed32(uint32) int + func SizeFixed64(uint64) int + func SizeFloat(float32) int + func SizeInt32(v int32) int + func SizeInt64(v int64) int + func SizeSfixed32(int32) int + func SizeSfixed64(int64) int + func SizeSint32(v int32) int + func SizeSint64(v int64) int + func SizeString(v string) int + func SizeUint32(v uint32) int + func SizeUint64(v uint64) int + type Codec struct + func NewCodec() *Codec + func (c *Codec) AppendScalar(b []byte, kind Kind, v uint64) []byte + func (c *Codec) ConsumeScalar(kind Kind, b []byte) (uint64, int) + func (c *Codec) SizeScalar(kind Kind, v uint64) int + type InvalidKindError struct + K Kind + Method string + func (e *InvalidKindError) Error() string + type Kind int8 + const KindBool + const KindBytes + const KindDouble + const KindEnum + const KindFixed32 + const KindFixed64 + const KindFloat + const KindGroup + const KindInt32 + const KindInt64 + const KindMessage + const KindSfixed32 + const KindSfixed64 + const KindSint32 + const KindSint64 + const KindString + const KindUint32 + const KindUint64 + func (k Kind) IsPackable() bool + func (k Kind) String() string + func (k Kind) Valid() bool + func (k Kind) WireType() wire.WireType + type UnsupportedKindError struct + K Kind + Method string + func (e *UnsupportedKindError) Error() string