code

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: BSD-3-Clause Imports: 1 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) PutBytes

func (buf *Buf) PutBytes(x []byte)

func (*Buf) PutInt16

func (buf *Buf) PutInt16(value int16)

func (*Buf) PutInt32

func (buf *Buf) PutInt32(value int32)

func (*Buf) PutInt64

func (buf *Buf) PutInt64(value int64)

func (*Buf) PutInt8

func (buf *Buf) PutInt8(value int8)

type Buffer

type Buffer interface {
	Bytes() []byte
	Extend(n int) []byte
	PutByte(byte)
	PutBytes([]byte)
}

Jump to

Keyboard shortcuts

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