|
Compress::Zlib::Perl - Pure perl implementation of Compress::Zlib |
Compress::Zlib::Perl - (Partial) Pure perl implementation of Compress::Zlib
use Compress::Zlib::Perl;
($i, $status) = inflateInit(-WindowBits => -MAX_WBITS);
($out, $status) = $i->inflate($buffer);
This a pure perl implementation of Compress::Zlib's inflate API.
Currently the only thing Compress::Zlib::Perl can do is inflate compressed data. A constructor and 3 methods from Compress::Zlib's interface are replicated:
inflater object; in list
context returns this object and a status (usually Z_OK)
Z_OK if the input stream is not yet finished,
Z_STREAM_END if all the input data is consumed and this output is the
final output.
inflate modifies the input parameter; at the end of the compressed stream
any data beyond its end remains in INPUT. Before the end of stream all
input data is consumed during the inflate call.
This implementation of inflate may not be as prompt at returning data as
Compress::Zlib's; this implementation currently buffers the last 32768 bytes
of output data until the end of the input stream, rather than attempting to
return as much data as possible during inflation.
undef is passed in.
die
Compress::Zlib
Ton Hospel wrote a pure perl gunzip program.
Nicholas Clark, <nick@talking.bollo.cx
Copyright 2004 by Ton Hospel, Nicholas Clark
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Compress::Zlib::Perl - Pure perl implementation of Compress::Zlib |