Skip to content

BZip2.BZ2Stream.Level

Andrew Lambert edited this page Feb 1, 2023 · 3 revisions

Property declaration

 Dim Level As Integer ' read-only

Remarks

Gets the compression level for the stream. Valid levels are Z_BEST_SPEED(1) to Z_BEST_COMPRESSION(9). 0 means no compression. The compression level controls the tradeoff between compression speed and compression ratio. Faster compression results in worse compression ratios.

The compression level is set when you create a BZ2Stream and cannot be changed mid-stream.

Clone this wiki locally