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

    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.
    }

    Source Files