CIX. Zlib Compression Functions
This
module
uses
the
functions
of
zlib
by
Jean-loup
Gailly
and
Mark
Adler
to
transparently
read
and
write
gzip
(
.gz
)
compressed
files
.
This
module
contains
versions
of
most
of
the
filesystem
functions
which
work
with
gzip-compressed
files
(
and
uncompressed
files
,
too
,
but
not
with
sockets
)
.
הערה
:
Version
4.0.4
introduces
a
fopen-wrapper
for
.gz-files
,
so
that
you
can
use
a
special
'
zlib
:
'
URL
to
access
compressed
files
transparently
using
the
normal
f*(
)
file
access
functions
if
you
prepend
the
filename
or
path
with
a
'zlib
:
'
prefix
when
calling
fopen(
)
.
Opens
a
temporary
file
and
writes
a
test
string
to
it
,
then
it
prints
out
the
content
of
this
file
twice
.
-
תוכן העניינים:
-
gzclose
-- Close an open gz-file pointer
-
gzcompress
-- Compress a string
-
gzdeflate
-- Deflate a string
-
gzencode
-- Create a gzip compressed string
-
gzeof
-- Test for end-of-file on a gz-file pointer
-
gzfile
-- Read entire gz-file into an array
-
gzgetc
-- Get character from gz-file pointer
-
gzgets
-- Get line from file pointer
-
gzgetss
-- Get line from gz-file pointer and strip HTML tags
-
gzinflate
-- Inflate a deflated string
-
gzopen
-- Open gz-file
-
gzpassthru
-- Output all remaining data on a gz-file pointer
-
gzputs
-- Write to a gz-file pointer
-
gzread
-- Binary-safe gz-file read
-
gzrewind
-- Rewind the position of a gz-file pointer
-
gzseek
-- Seek on a gz-file pointer
-
gztell
-- Tell gz-file pointer read/write position
-
gzuncompress
-- Uncompress a deflated string
-
gzwrite
-- Binary-safe gz-file write
-
readgzfile
-- Output a gz-file