Documentation ¶
Index ¶
Constants ¶
View Source
const ( Bytes2 int = 2 Bytes4 int = 4 Bytes8 int = 8 )
Variables ¶
View Source
var ErrBufTooSmall = errors.New("buffer too small")
View Source
var ErrOverflow = errors.New("varint overflows a 64-bit integer")
View Source
var ErrReuseBufTooSmall = errors.New("reuse buffer too small")
View Source
var ErrVerifyMarshal = errors.New("check for a mistake in calculating the size or in the marshal process")
View Source
var ErrVerifyUnmarshal = errors.New("check for a mistake in the unmarshal process")
Functions ¶
func VerifyMarshal ¶
Verifies that the length of the buffer equals n
func VerifyUnmarshal ¶
Verifies that the length of the buffer equals n
func WithBufferSize ¶ added in v1.0.9
func WithBufferSize(bufSize uint) optFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.