Functions

GZip.gzdopenMethod
gzdopen(fd, [gzmode, buf_size])

Create a GZipStream object from an integer file descriptor. See gzopen for gzmode and buf_size descriptions.

source
GZip.gzopenMethod
gzopen(fname::AbstractString, [gzmode::AbstractString, buf_size::Integer])::GZipStream

Opens a file with mode (default "r"), setting internal buffer size to buf_size (default Z_DEFAULT_BUFSIZE=8192), and returns a the file as a GZipStream.

gzmode must contain one of:

modeDescription
rread
wwrite, create, truncate
awrite, create, append

In addition, gzmode may also contain

modeDescription
xcreate the file exclusively (fails if file exists)
0-9compression level

and/or a compression strategy:

modeDescription
ffiltered data
hHuffman-only compression
Rrun-length encoding
Ffixed code compression

Note that + is not allowed in gzmode. If an error occurs, gzopen throws a GZError.

source
GZip.openMethod
open(fname::AbstractString, [gzmode, bufsize])::GZipStream

Alias for gzopen. This is not exported, and must be called using GZip.open.

source

Types

GZip.GZErrorType
GZError <: Exception

gzip error number and string. Possible error values:

Error numberString
Z_OKNo error
Z_ERRNOFilesystem error (consult errno())
Z_STREAM_ERRORInconsistent stream state
Z_DATA_ERRORCompressed data error
Z_MEM_ERROROut of memory
Z_BUF_ERRORInput buffer full/output buffer empty
Z_VERSION_ERRORzlib library version is incompatible with caller version
source