Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReader ¶
NewReader creates a new [Reader] reading the given reader. If r does not also implement io.ByteReader, the decompressor may read more data than necessary from r.
It is the caller's responsibility to call Close on the [Reader] when done.
The [Reader.Header] fields will be valid in the [Reader] returned.
func NewWriterLevel ¶
NewWriterLevel is like [NewWriter] but specifies the compression level instead of assuming [DefaultCompression].
The compression level can be [DefaultCompression], [NoCompression], [HuffmanOnly] or any integer value between [BestSpeed] and [BestCompression] inclusive. The error returned will be nil if the level is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.