Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStream = errors.New("bzip: stream") ErrConfig = errors.New("bzip: config") ErrSequence = errors.New("bzip: sequence") ErrParam = errors.New("bzip: parameter") ErrMem = errors.New("bzip: memory") ErrData = errors.New("bzip: data") ErrDataMagic = errors.New("bzip: data magic") ErrIO = errors.New("bzip: i/o") ErrUnexpected = errors.New("bzip: unexpected") ErrOutbufFull = errors.New("bzip: output buffer full") ErrUnknown = errors.New("bzip: unknown error") )
Functions ¶
Types ¶
type BzipWriter ¶
type BzipWriter struct {
// contains filtered or unexported fields
}
func NewBzipWriter ¶
func NewBzipWriter(w io.Writer) (*BzipWriter, error)
NewBzipWriter returns a BzipWriter which compresses byte data to w
func (*BzipWriter) Close ¶
func (b *BzipWriter) Close() error
Close closes the bzip writer and flushes the data to the w
Click to show internal directories.
Click to hide internal directories.