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











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord 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?