decompress

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoFound = errors.New("not found decompresser")
)

Functions

This section is empty.

Types

type DeCompress

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

type Decompresser

type Decompresser interface {
	io.ReaderAt
	io.ReadCloser
}

func Open

func Open(opt Option) (reader Decompresser, e error)

type FormatType

type FormatType byte
const (
	NoDecompressType FormatType = iota
	Lz4Type
)

func GetFormat

func GetFormat(fname string) (string, FormatType)

type Lz4

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

func NewLz4

func NewLz4(fname string) Lz4

func (Lz4) Close

func (l Lz4) Close() error

func (Lz4) Read

func (l Lz4) Read(b []byte) (n int, e error)

func (Lz4) ReadAt

func (l Lz4) ReadAt(b []byte, o int64) (n int, e error)

type NoDecompress

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

func (NoDecompress) Close

func (nd NoDecompress) Close() error

func (NoDecompress) Read

func (nd NoDecompress) Read(b []byte) (n int, e error)

func (NoDecompress) ReadAt

func (nd NoDecompress) ReadAt(b []byte, o int64) (n int, e error)

type Option

type Option func() Decompresser

func LocalFile

func LocalFile(fname string) Option

Jump to

Keyboard shortcuts

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