ecz

package
v0.0.0-...-cbce103 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Store   = 0
	Deflate = 8
)

Variables

View Source
var (
	ErrInvalidSig                    = errors.New("invalid local signature")
	ErrNotImplementCompressionMethod = errors.New("not implement compression method")
)

Functions

This section is empty.

Types

type Decompressor

type Decompressor func(reader io.Reader) io.ReadCloser

type Ecz

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

func New

func New(r io.ReaderAt, size int64) (*Ecz, error)

func (*Ecz) NextFile

func (e *Ecz) NextFile() (*File, error)

type File

type File struct {
	Header LocalHeader

	CompressedReader *compressedDataReader
	// contains filtered or unexported fields
}

func (*File) IsDir

func (f *File) IsDir() bool

func (*File) IsFile

func (f *File) IsFile() bool

func (*File) Write

func (f *File) Write(w io.Writer) (int64, error)

type LocalHeader

type LocalHeader struct {
	Version           int
	Flag              int
	CompressionMethod int
	LastModTime       int
	LastModDate       int
	Crc32             int
	CompressedSize    int
	UncompressedSize  int
	FileNameLength    int
	ExtraFieldLength  int
	FileName          string
	ExtraField        []byte
}

Jump to

Keyboard shortcuts

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