A streaming gzip compressor. Feed data incrementally with write,
then call finish to produce the final gzip output.
@class Compressor
@eryx/compression/gzip ModuleGzip helpers: compress/decompress and header inspection utilities.
A streaming gzip compressor. Feed data incrementally with write,
then call finish to produce the final gzip output.
@class Compressor
A streaming gzip decompressor. Feed compressed chunks with write;
the second return value indicates when the stream is complete.
@class Decompressor
Standard gzip compress.
input bytes to compress
compression level (NO_COMPRESSION..BEST_COMPRESSION)
gzip-wrapped compressed bytes
Gzip compress with a custom header (filename, timestamp, OS, comment).
input bytes to compress
header and compression options
gzip-wrapped compressed bytes
Gzip decompress.
gzip stream to decompress
decompressed bytes
Returns true if the buffer starts with the gzip magic bytes (0x1F 0x8B).
data to inspect
true when buffer looks like gzip
Parses the gzip header fields without decompressing the payload.
gzip stream
parsed header fields
Creates a streaming gzip compressor.
compression level
the streaming compressor
Creates a streaming gzip decompressor.
the streaming decompressor
gzip.OS_FAT = 0 - MS-DOS / FATgzip.OS_AMIGA = 1gzip.OS_VMS = 2gzip.OS_UNIX = 3gzip.OS_HPFS = 6 - OS/2 / NTgzip.OS_MAC = 7gzip.OS_NTFS = 11gzip.OS_UNKNOWN = 255gzip.NO_COMPRESSION = 0gzip.BEST_SPEED = 1gzip.BEST_COMPRESSION = 9