Versions in this module Expand all Collapse all v1 v1.7.2 Nov 3, 2020 Changes in this version + var ErrBadWireType = errors.New("proto: bad wiretype") + var ErrOverflow = errors.New("proto: integer overflow") + type Buffer struct + func NewBuffer(buf []byte) *Buffer + func (cb *Buffer) Bytes() []byte + 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) 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)