Class representing a gzip compressor.
Gzip encoding uses temporary files because R's memCompress() produces
zlib framing rather than gzip framing. This makes GzipCodec slower than
ZstdCodec for writes. Prefer ZstdCodec when performance matters.
Details
Gzip compressor for Zarr
Public fields
level
The compression level.
Methods
Method new()
Create a new Gzip compressor.
Arguments
level
The compression level, between 1 and 22.
...
Not used.
Returns
A new GzipCodec object.
Method encode()
Compress data.
Usage
GzipCodec$encode(buf, zarr_arr)
Arguments
buf
(raw())
The un-compressed data.
zarr_arr
(ZarrArray)
The ZarrArray instance.
Method decode()
Decompress data.
Usage
GzipCodec$decode(buf, zarr_arr)
Arguments
buf
(raw())
The compressed data.
zarr_arr
(ZarrArray)
The ZarrArray instance.
Returns
Un-compressed data.
Method get_config()
Get codec configuration as a list.
Method clone()
The objects of this class are cloneable with this method.
Usage
GzipCodec$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.