Versions in this module Expand all Collapse all v0 v0.0.1 May 30, 2022 Changes in this version + var ErrNotEnough = errors.New("buffer: not enough") + type Buffer struct + func New(data []byte) *Buffer + func (b *Buffer) Append(data []byte) *Buffer + func (b *Buffer) Bytes() []byte + func (b *Buffer) CapTo(size int) + func (b *Buffer) Check(size int) bool + func (b *Buffer) Gap() int + func (b *Buffer) MustAppend(size int, data []byte) []byte + func (b *Buffer) MustCopy(size int, bp []byte) *Buffer + func (b *Buffer) MustPutBytes(data []byte) *Buffer + func (b *Buffer) MustPutCRC32() *Buffer + func (b *Buffer) MustPutUint16(u16 uint16) *Buffer + func (b *Buffer) MustPutUint32(u32 uint32) *Buffer + func (b *Buffer) MustPutUint32String(s string) *Buffer + func (b *Buffer) MustPutUint64(u64 uint64) *Buffer + func (b *Buffer) MustPutUint8(u8 uint8) *Buffer + func (b *Buffer) MustRef(size int, bp *[]byte) *Buffer + func (b *Buffer) MustSkip(n int) *Buffer + func (b *Buffer) MustTake(dst []byte) *Buffer + func (b *Buffer) MustUint16(u16 *uint16) *Buffer + func (b *Buffer) MustUint32(u32 *uint32) *Buffer + func (b *Buffer) MustUint64(u64 *uint64) *Buffer + func (b *Buffer) MustUint8(u8 *uint8) *Buffer + func (b *Buffer) Peek(i int) byte + func (b *Buffer) Pos() int + func (b *Buffer) Remain() int + func (b *Buffer) Uint32() (uint32, error) + func (b *Buffer) Uint32String() (string, error) + func (b *Buffer) Uint8() (uint8, error)