Compress::Bzip2

Interface to Bzip2 compression library
Download

Compress::Bzip2 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Rob Janes
  • Publisher web site:
  • http://search.cpan.org/~arjay/

Compress::Bzip2 Tags


Compress::Bzip2 Description

Interface to Bzip2 compression library Compress::Bzip2 is a Perl interface to Bzip2 compression library.SYNOPSIS use Compress::Bzip2 qw(:all :constant :utilities :gzip); ($bz, $status) = bzdeflateInit( ) ; ($out, $status) = $bz->bzdeflate($buffer) ; ($bz, $status) = bzinflateInit( ) ; ($out, $status) = $bz->bzinflate($buffer) ; ($out, $status) = $bz->bzflush() ; ($out, $status) = $bz->bzclose() ; $dest = memBzip($source); alias compress $dest = memBunzip($source); alias decompress $bz = Compress::Bzip2->new( ); $bz = bzopen($filename or filehandle, $mode); alternate, with $bz created by new(): $bz->bzopen($filename or filehandle, $mode); $bytesread = $bz->bzread($buffer ) ; $bytesread = $bz->bzreadline($line); $byteswritten = $bz->bzwrite($buffer ); $errstring = $bz->bzerror(); $status = $bz->bzeof(); $status = $bz->bzflush(); $status = $bz->bzclose() ; $status = $bz->bzsetparams( $param => $setting ); $bz->total_in() ; $bz->total_out() ; $verstring = $bz->bzversion(); $Compress::Bzip2::bzerrnoThe Compress::Bzip2 module provides a Perl interface to the Bzip2 compression library (see "AUTHOR" for details about where to get Bzip2). A relevant subset of the functionality provided by Bzip2 is available in Compress::Bzip2.All string parameters can either be a scalar or a scalar reference.The module can be split into two general areas of functionality, namely in-memory compression/decompression and read/write access to bzip2 files. Each of these areas will be discussed separately below. Requirements: · Perl


Compress::Bzip2 Related Software