Compress::LZO - Interface to the LZO compression library
use Compress::LZO;
$dest = Compress::LZO::compress($source, [$level]); $dest = Compress::LZO::decompress($source); $dest = Compress::LZO::optimize($source);
$crc = Compress::LZO::adler32($buffer [,$crc]); $crc = Compress::LZO::crc32($buffer [,$crc]);
LZO_VERSION, LZO_VERSION_STRING, LZO_VERSION_DATE
All string parameters can either be a scalar or a scalar reference.
Compress a string using the default compression level, returning a string containing compressed data.
$dest = Compress::LZO::compress($string, $level)
Compress string, using the chosen compression level (either 1 or 9). Return a string containing the compressed data.
If the string is not compressible, undef is returned.
Decompress the data in string, returning a string containing the decompressed data.
On error (in case of corrupted data) undef is returned.
Optimize the representation of the compressed data, returning a string containing the compressed data.
$crc = Compress::LZO::adler32($string [,$initialAdler]); $crc = Compress::LZO::crc32($string [,$initialCrc]);
The LZO compression library was written by Markus F.X.J. Oberhumer markus@oberhumer.com. It is available from the LZO home page at http://www.oberhumer.com/opensource/lzo/.
The LZO library and algorithms are Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 by Markus Franz Xaver Johannes Oberhumer markus@oberhumer.com. All Rights Reserved.
1.00 1998-08-22 First public release of Compress::LZO.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |