Versions in this module Expand all Collapse all v1 v1.8.2 Feb 5, 2021 Changes in this version + var ErrBadWireType = codec.ErrBadWireType + var ErrOverflow = codec.ErrOverflow + var ErrWireTypeEndGroup = errors.New("unexpected wire type: end group") + func DecodeLengthDelimitedField(fd *desc.FieldDescriptor, bytes []byte, mf MessageFactory) (interface{}, error) + func DecodeScalarField(fd *desc.FieldDescriptor, v uint64) (interface{}, error) + func DecodeZigZag32(v uint64) int32 + func DecodeZigZag64(v uint64) int64 + func EncodeZigZag32(v int32) uint64 + func EncodeZigZag64(v int64) uint64 + type Buffer codec.Buffer + func NewBuffer(buf []byte) *Buffer + func (cb *Buffer) Bytes() []byte + func (cb *Buffer) DecodeFieldValue(fieldFinder func(int32) *desc.FieldDescriptor, fact MessageFactory) (*desc.FieldDescriptor, interface{}, error) + func (cb *Buffer) DecodeFixed32() (x uint64, err error) + func (cb *Buffer) DecodeFixed64() (x uint64, err error) + func (cb *Buffer) DecodeRawBytes(alloc bool) (buf []byte, err error) + func (cb *Buffer) DecodeTagAndWireType() (tag int32, wireType int8, err error) + func (cb *Buffer) DecodeVarint() (uint64, error) + func (cb *Buffer) EOF() bool + func (cb *Buffer) EncodeDelimitedMessage(pm proto.Message) error + func (cb *Buffer) EncodeFieldValue(fd *desc.FieldDescriptor, val interface{}) error + func (cb *Buffer) EncodeFixed32(x uint64) error + func (cb *Buffer) EncodeFixed64(x uint64) error + func (cb *Buffer) EncodeMessage(pm proto.Message) error + func (cb *Buffer) EncodeRawBytes(b []byte) error + func (cb *Buffer) EncodeTagAndWireType(tag int32, wireType int8) error + func (cb *Buffer) EncodeVarint(x uint64) error + func (cb *Buffer) IsDeterministic() bool + func (cb *Buffer) Len() int + func (cb *Buffer) Read(dest []byte) (int, error) + func (cb *Buffer) ReadGroup(alloc bool) ([]byte, error) + func (cb *Buffer) Reset() + func (cb *Buffer) SetDeterministic(deterministic bool) + func (cb *Buffer) Skip(count int) error + func (cb *Buffer) SkipField(wireType int8) error + func (cb *Buffer) SkipGroup() error + func (cb *Buffer) String() string + func (cb *Buffer) Write(data []byte) (int, error) + type MessageFactory interface + NewMessage func(md *desc.MessageDescriptor) proto.Message + type UnknownField struct + Contents []byte + Encoding int8 + Tag int32 + Value uint64