code

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buf

type Buf struct {
	Buffer
	Addr int32
}

Buf is an optimized Buffer. The cached length (Addr) avoids interface function calls.

func (*Buf) Extend

func (buf *Buf) Extend(n int) (b []byte)

func (*Buf) PutByte

func (buf *Buf) PutByte(x byte)

func (*Buf) PutUint32 added in v0.11.0

func (buf *Buf) PutUint32(x uint32)

type Buffer

type Buffer interface {
	Bytes() []byte
	Extend(n int) []byte
	PutByte(byte)
	PutUint32(uint32) // Little-endian byte order.
}

Jump to

Keyboard shortcuts

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