bytey

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOutOfBounds   = errors.New("out of bounds")
	ErrInvalidWhence = errors.New("invalid whence")
)

Functions

This section is empty.

Types

type Buffer

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

Buffer implements io.ReadWriteSeeker.

func NewBuffer

func NewBuffer(buf []byte) *Buffer

NewBuffer returns a new *Buffer that implements io.ReadWriteSeeker.

func (*Buffer) Bytes

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

func (*Buffer) Close added in v0.1.17

func (b *Buffer) Close() error

Close doesn't do anything; it's only here to comply with the Close interface.

func (*Buffer) Len

func (b *Buffer) Len() int

func (*Buffer) Read

func (b *Buffer) Read(buf []byte) (int, error)

func (*Buffer) Seek

func (b *Buffer) Seek(offset int64, whence int) (int64, error)

func (*Buffer) Write

func (b *Buffer) Write(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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