![]() This made things especially tricky when a Perl filehandle was passed to gzopen. In Compress::Zlib version 1.x, gzopen used the zlib library to open the underlying file. If you want to open either STDIN or STDOUT with gzopen, you can now optionally use the special filename " -" as a synonym for \*STDIN and \*STDOUT. If you have previously used Compress::Zlib 1.x, the following enhancements/changes have been made to the gzopen interface: This module provides an interface to most of them. GZIP INTERFACEĪ number of functions are supplied in zlib for reading and writing gzip files that conform to RFC 1952. If you are writing new code, your first port of call should be one of the new IO::Compress or IO::Uncompress modules. Development on Compress::Zlib will be limited to bug fixes only. With the creation of the IO::Compress and IO::Uncompress modules no new features are planned for Compress::Zlib - the new modules do everything that Compress::Zlib does and then some. If you find a difference in the expected behaviour please contact the author (See "AUTHOR"). The interface provided by version 2 of this module should be 100% backward compatible with version 1. Instead it uses the IO::Compress::Gzip and IO::Uncompress::Gunzip modules for reading/writing gzip files, and the Compress::Raw::Zlib module for some low-level zlib access. The main change in Compress::Zlib version 2.x is that it does not now interface directly to the zlib library. Notes for users of Compress::Zlib version 1 The Compress::Zlib module can be split into two general areas of functionality, namely a simple read/write interface to gzip files and a low-level in-memory compression/decompression interface.Įach of these areas will be discussed in the following sections. The Compress::Zlib module provides a Perl interface to the zlib compression library (see "AUTHOR" for details about where to get zlib). ![]() My $version = Compress::Raw::Zlib::zlib_version() DESCRIPTION $adler = adler32_combine($adler1, $adler2, $len2) $dest = Compress::Zlib::memGunzip($buffer) $dest = Compress::Zlib::memGzip($buffer) $status = $gz->gzsetparams($level, $strategy) $gz = gzopen($filename or filehandle, $mode) my $version = Compress::Zlib::zlib_version() Ĭompress::Zlib - Interface to zlib compression library SYNOPSIS use Compress::Zlib.Notes for users of Compress::Zlib version 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |