gsip

package
v0.0.0-...-6f22675 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	Checkpoints []*flate.Checkpoint
}

Index contains the metadata used by Reader to skip around a gzip stream. The layout will absolutely change and break you if you depend on it.

type Reader

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

func Decode

func Decode(ra io.ReaderAt, size int64, index io.Reader) (*Reader, error)

func NewReader

func NewReader(ra io.ReaderAt, size int64) (*Reader, error)

func (*Reader) Encode

func (r *Reader) Encode(w io.Writer) error

func (*Reader) ReadAt

func (r *Reader) ReadAt(p []byte, off int64) (int, error)

Directories

Path Synopsis
internal
flate
Package flate implements the DEFLATE compressed data format, described in RFC 1951.
Package flate implements the DEFLATE compressed data format, described in RFC 1951.
gzip
Package gzip implements reading and writing of gzip format compressed files, as specified in RFC 1952.
Package gzip implements reading and writing of gzip format compressed files, as specified in RFC 1952.

Jump to

Keyboard shortcuts

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