v3

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotEnoughRoom = errors.New("not enough room left in the buffer")
	ErrBadChecksum   = errors.New("bad checksum")
	ErrBadPageSize   = errors.New("bad page size; must be evenly divisible")
)

Functions

This section is empty.

Types

type DataReader

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

func NewDataReader

func NewDataReader(r io.Reader, opt *Options) *DataReader

func (*DataReader) Read

func (d *DataReader) Read(p []byte) (int, error)

type DataWriter

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

func NewDataWriter

func NewDataWriter(w io.Writer, opt *Options) *DataWriter

func (*DataWriter) Flush

func (d *DataWriter) Flush() error

func (*DataWriter) Write

func (d *DataWriter) Write(p []byte) (int, error)

type Options

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

Jump to

Keyboard shortcuts

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