Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

Upp BZ2 Compression

plugin\bz2

 

Method Detail

 

String BZ2Compress(String s, Gate2<int, intprogress)

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, intprogress = 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, intprogress = 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, intprogress = 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, intprogress = 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.

 

 

Do you want to contribute?