NAME

Gzip::Libdeflate - Perl interface to libdeflate

SYNOPSIS

use Gzip::Libdeflate;

VERSION

This documents version 0.00_02 of Gzip-Libdeflate corresponding to git commit 852876631d0d0b1786d8ec2a1de711ab89c7b838 released on Sat Feb 13 09:12:21 2021 +0900. This distribution also includes libdeflate version 1.7.

DESCRIPTION

Interface to libdeflate. libdeflate offers the same forms of compression as zlib, as used in gzip, libpng and similar utilities. This distribution includes libdeflate within itself, so it is not necessary to have that on your system.

METHODS

Creators

compressor

my $co = Gzip::Libdeflate->compressor ();

Accepts an optional number argument of compression level (1-12). The default is 6.

decompressor

my $de = Gzip::Libdeflate->decompressor ();

Compressors

deflate_compress

my $dthing = $gl->gzip_compress ($thing);

gzip_compress

my $gzthing = $gl->gzip_compress ($thing);

zlib_compress

my $zthing = $gl->zlib_compress ($thing);

Decompressors

deflate_decompress

Not implemented in this release.

gzip_decompress

my $thing = $gl->gzip_decompress ($gzthing);

zlib_compress

Not implemented in this release.

SEE ALSO

About libdeflate

https://github.com/ebiggers/libdeflate

CPAN modules

Alien::libdeflate

AUTHOR

Ben Bullock, <bkb@cpan.org>

COPYRIGHT & LICENCE

This package and associated files are copyright (C) 2021 Ben Bullock.

You can use, copy, modify and redistribute this package and associated files under the Perl Artistic Licence or the GNU General Public Licence.

Libdeflate is copyright Eric Biggers and is used under the following licence.

Copyright 2016 Eric Biggers

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.