Documentation ¶
Overview ¶
Package compress implements compression support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MethodStrings ¶
func MethodStrings() []string
MethodStrings returns a slice of all String values of the enum
Types ¶
type CorruptedDataErr ¶
CorruptedDataErr means that provided hash mismatch with calculated.
func (*CorruptedDataErr) Error ¶
func (c *CorruptedDataErr) Error() string
type Method ¶
type Method byte
Method is compression codec.
func MethodString ¶
MethodString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader decodes compressed blocks.
type Writer ¶
type Writer struct { Data []byte // contains filtered or unexported fields }
Writer encodes compressed blocks.
func NewWriterWithLevel ¶ added in v0.62.0
Click to show internal directories.
Click to hide internal directories.