Skip to content

zlib.ZStream.Constructor

Andrew Lambert edited this page Aug 18, 2016 · 22 revisions

#zlib.ZStream.Constructor

##Method Signatures

 Sub Constructor(Source As MemoryBlock, CompressionLevel As Integer, CompressionStrategy As Integer, WindowBits As Integer, MemoryLevel As Integer)

##Parameters

Name Type Comment
Source MemoryBlock A zero-length MemoryBlock to use for output, or a >0 length MemoryBlock to use for input
CompressionLevel Integer Optional. The compression level for the output. Valid levels are 1(fast) to 9(best)
CompressionStrategy Integer Optional. The compression strategy for the output.
WindowBits Integer Optional. The type of compression.
MemoryLevel Integer Optional. The memory level.

##Notes Constructs a ZStream from the passed MemoryBlock. It the MemoryBlock has a length of zero then compressed data will be written to the MemoryBlock; otherwise, the MemoryBlock will be used as input to be decompressed.

Entry-level points of interest denoted by "☜"



Clone this wiki locally