buffer

package
v0.0.0-...-1549436 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPosition = errors.New("invalid position")

Functions

This section is empty.

Types

type Buffer

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

func NewBuffer

func NewBuffer(bs []byte) *Buffer

func (*Buffer) Discard

func (b *Buffer) Discard(n int64) error

func (*Buffer) ReadFloat

func (b *Buffer) ReadFloat(pos int, order binary.ByteOrder) (i float32, err error)

func (*Buffer) ReadInt16

func (b *Buffer) ReadInt16(pos, count int, order binary.ByteOrder) (i int16, err error)

func (*Buffer) ReadInt32

func (b *Buffer) ReadInt32(pos, count int, order binary.ByteOrder) (i int32, err error)

func (*Buffer) ReadInt8

func (b *Buffer) ReadInt8(pos, count int, order binary.ByteOrder) (i int8, err error)

func (*Buffer) ReadUint16

func (b *Buffer) ReadUint16(pos, count int, order binary.ByteOrder) (i uint16, err error)

func (*Buffer) ReadUint32

func (b *Buffer) ReadUint32(pos, count int, order binary.ByteOrder) (i uint32, err error)

func (*Buffer) ReadUint8

func (b *Buffer) ReadUint8(pos, count int, order binary.ByteOrder) (i uint8, err error)

Jump to

Keyboard shortcuts

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