buffer

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotEnough = errors.New("buffer: not enough")

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func New

func New(data []byte) *Buffer

func (*Buffer) Append

func (b *Buffer) Append(data []byte) *Buffer

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

func (*Buffer) CapTo

func (b *Buffer) CapTo(size int)

func (*Buffer) Check

func (b *Buffer) Check(size int) bool

func (*Buffer) Gap

func (b *Buffer) Gap() int

func (*Buffer) MustAppend

func (b *Buffer) MustAppend(size int, data []byte) []byte

func (*Buffer) MustCopy

func (b *Buffer) MustCopy(size int, bp []byte) *Buffer

func (*Buffer) MustPutBytes

func (b *Buffer) MustPutBytes(data []byte) *Buffer

func (*Buffer) MustPutCRC32

func (b *Buffer) MustPutCRC32() *Buffer

func (*Buffer) MustPutUint16

func (b *Buffer) MustPutUint16(u16 uint16) *Buffer

func (*Buffer) MustPutUint32

func (b *Buffer) MustPutUint32(u32 uint32) *Buffer

func (*Buffer) MustPutUint32String

func (b *Buffer) MustPutUint32String(s string) *Buffer

func (*Buffer) MustPutUint64

func (b *Buffer) MustPutUint64(u64 uint64) *Buffer

Go is sutpid and not way to inline below

func (*Buffer) MustPutUint8

func (b *Buffer) MustPutUint8(u8 uint8) *Buffer

func (*Buffer) MustRef

func (b *Buffer) MustRef(size int, bp *[]byte) *Buffer

func (*Buffer) MustSkip

func (b *Buffer) MustSkip(n int) *Buffer

func (*Buffer) MustTake

func (b *Buffer) MustTake(dst []byte) *Buffer

func (*Buffer) MustUint16

func (b *Buffer) MustUint16(u16 *uint16) *Buffer

func (*Buffer) MustUint32

func (b *Buffer) MustUint32(u32 *uint32) *Buffer

func (*Buffer) MustUint64

func (b *Buffer) MustUint64(u64 *uint64) *Buffer

func (*Buffer) MustUint8

func (b *Buffer) MustUint8(u8 *uint8) *Buffer

func (*Buffer) Peek

func (b *Buffer) Peek(i int) byte

func (*Buffer) Pos

func (b *Buffer) Pos() int

func (*Buffer) Remain

func (b *Buffer) Remain() int

func (*Buffer) Uint32

func (b *Buffer) Uint32() (uint32, error)

func (*Buffer) Uint32String

func (b *Buffer) Uint32String() (string, error)

func (*Buffer) Uint8

func (b *Buffer) Uint8() (uint8, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL