base: Index | Files

package recordioflate

import ""

Package recordioflate provides the "flate" transformer. It implements flate compression and decompression. To use:

- Call recordioflate.Init() when the process starts.

- Add "flate" to WriterV2Opts.Transformer. It will compress blocks using

flate default compression level. Setting "flate 3" will enable flate
compression level 3.


Package Files



const Name = "flate"

Name is the registered name of the flate transformer.

func FlateUncompress Uses

func FlateUncompress(scratch []byte, in [][]byte) ([]byte, error)

FlateUncompress is the uncompress transformer for flate. This is exposed only to read legacy files. For regular applications, adding "flate" to ScannerOpts.Transformers will enable flate.

func Init Uses

func Init()

Init installs the zstd transformer in recordio. It can be called multiple times, but 2nd and later calls have no effect.

Package recordioflate imports 7 packages (graph) and is imported by 1 packages. Updated 2018-09-09. Refresh now. Tools for package owners.