kkcflate

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	NoCompression      = 0
	BestSpeed          = 1
	BestCompression    = 9
	DefaultCompression = -1

	HuffmanOnly         = -2
	ConstantCompression = HuffmanOnly
)

Variables

This section is empty.

Functions

func NewReader

func NewReader(r io.Reader) io.ReadCloser

func NewReaderDict

func NewReaderDict(r io.Reader, dict []byte) io.ReadCloser

Types

type CorruptInputError

type CorruptInputError int64

func (CorruptInputError) Error

func (e CorruptInputError) Error() string

type InternalError

type InternalError string

func (InternalError) Error

func (e InternalError) Error() string

type ReadError

type ReadError struct {
	Offset int64
	Err    error
}

func (*ReadError) Error

func (e *ReadError) Error() string

type Reader

type Reader interface {
	io.Reader
	io.ByteReader
}

type Resetter

type Resetter interface {
	Reset(r io.Reader, dict []byte) error
}

type WriteError

type WriteError struct {
	Offset int64
	Err    error
}

func (*WriteError) Error

func (e *WriteError) Error() string

type Writer

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

func NewWriter

func NewWriter(w io.Writer, level int) (*Writer, error)

func NewWriterDict

func NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error)

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Flush

func (w *Writer) Flush() error

func (*Writer) Reset

func (w *Writer) Reset(dst io.Writer)

func (*Writer) ResetDict

func (w *Writer) ResetDict(dst io.Writer, dict []byte)

func (*Writer) Write

func (w *Writer) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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