Upp BZ2 Compression
plugin\bz2
String BZ2Compress(String s, Gate2<int, int> progress)
Compress the string s using bzip2 library. Run Gate function progress (usually used to update GUI progress bar) as compression continues. progress function is called each time a block of text is compressed (block size depends on compression buffer size). Return the compressed String.
void BZ2Compress(Stream& out, Stream& in, Gate2<int, int> progress = false)
Compress the Stream in while calling Gate function progressfor each block that is compressed. Each compressed block is sent to Stream out.
String BZ2Decompress(String s, Gate2<int, int> progress = false)
Decompress the string s using bzip2 library. Run Gate function progress (usually used to update GUI progress bar) as decompression continues. progress function is called each time a block of text is decompressed (block size depends on decompression buffer size). Return the decompressed String.
void BZ2Decompress(Stream& out, Stream& in, Gate2<int, int> progress = false)
Decompress the Stream in while calling Gate function progressfor each block that is compressed. Each decompressed block is sent to Stream out.
String BZ2Decompress(Stream& stream, Gate2<int, int> progress = false)
Decompress the Stream stream using bzip2 library. Run Gate function progress (usually used to update GUI progress bar) as decompression continues. progress function is called each time a block is decompressed (block size depends on decompression buffer size). Return the entire decompressed String.
|