Documentation ¶
Index ¶
- Constants
- func AcquireGzipReader(r io.Reader) (*gzip.Reader, error)
- func AcquireStacklessGzipWriter(w io.Writer, level int) stackless.Writer
- func AppendGunzipBytes(dst, src []byte) ([]byte, error)
- func AppendGzipBytes(dst, src []byte) []byte
- func AppendGzipBytesLevel(dst, src []byte, level int) []byte
- func ReleaseGzipReader(zr *gzip.Reader)
- func ReleaseStacklessGzipWriter(sw stackless.Writer, level int)
- func WriteGunzip(w io.Writer, p []byte) (int, error)
- func WriteGzipLevel(w io.Writer, p []byte, level int) (int, error)
Constants ¶
View Source
const CompressDefaultCompression = 6 // flate.DefaultCompression
Variables ¶
This section is empty.
Functions ¶
func AppendGunzipBytes ¶
AppendGunzipBytes appends gunzipped src to dst and returns the resulting dst.
func AppendGzipBytes ¶
AppendGzipBytes appends gzipped src to dst and returns the resulting dst.
func AppendGzipBytesLevel ¶
AppendGzipBytesLevel appends gzipped src to dst using the given compression level and returns the resulting dst.
Supported compression levels are:
- CompressNoCompression
- CompressBestSpeed
- CompressBestCompression
- CompressDefaultCompression
- CompressHuffmanOnly
func ReleaseGzipReader ¶
func WriteGunzip ¶
WriteGunzip writes gunzipped p to w and returns the number of uncompressed bytes written to w.
func WriteGzipLevel ¶
WriteGzipLevel writes gzipped p to w using the given compression level and returns the number of compressed bytes written to w.
Supported compression levels are:
- CompressNoCompression
- CompressBestSpeed
- CompressBestCompression
- CompressDefaultCompression
- CompressHuffmanOnly
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.