compress: github.com/dsnet/compress/bzip2 Index | Files | Directories

package bzip2

import "github.com/dsnet/compress/bzip2"

Package bzip2 implements the BZip2 compressed data format.

Canonical C implementation:

http://bzip.org

Unofficial format specification:

https://github.com/dsnet/compress/blob/master/doc/bzip2-format.pdf

Index

Package Files

bwt.go common.go fuzz_off.go mtf_rle2.go prefix.go reader.go rle1.go writer.go

Constants

const (
    BestSpeed          = 1
    BestCompression    = 9
    DefaultCompression = 6
)

type Reader Uses

type Reader struct {
    InputOffset  int64 // Total number of bytes read from underlying io.Reader
    OutputOffset int64 // Total number of bytes emitted from Read
    // contains filtered or unexported fields
}

func NewReader Uses

func NewReader(r io.Reader, conf *ReaderConfig) (*Reader, error)

func (*Reader) Close Uses

func (zr *Reader) Close() error

func (*Reader) Read Uses

func (zr *Reader) Read(buf []byte) (int, error)

func (*Reader) Reset Uses

func (zr *Reader) Reset(r io.Reader) error

type ReaderConfig Uses

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

type Writer Uses

type Writer struct {
    InputOffset  int64 // Total number of bytes issued to Write
    OutputOffset int64 // Total number of bytes written to underlying io.Writer
    // contains filtered or unexported fields
}

func NewWriter Uses

func NewWriter(w io.Writer, conf *WriterConfig) (*Writer, error)

func (*Writer) Close Uses

func (zw *Writer) Close() error

func (*Writer) Reset Uses

func (zw *Writer) Reset(w io.Writer) error

func (*Writer) Write Uses

func (zw *Writer) Write(buf []byte) (int, error)

type WriterConfig Uses

type WriterConfig struct {
    Level int
    // contains filtered or unexported fields
}

Directories

PathSynopsis
internal/saisPackage sais implements a linear time suffix array algorithm.

Package bzip2 imports 7 packages (graph) and is imported by 47 packages. Updated 2020-07-27. Refresh now. Tools for package owners.