Skip to content

zlib.ZStream.Constructor

Andrew Lambert edited this page Dec 19, 2016 · 22 revisions

#zlib.ZStream.Constructor

##Method Signatures

 Sub Constructor(Source As MemoryBlock,  CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION, CompressionStrategy As Integer = zlib.Z_DEFAULT_STRATEGY, WindowBits As Integer = zlib.Z_DETECT, MemoryLevel As Integer = zlib.DEFAULT_MEM_LVL)
 Sub Constructor(Source As BinaryStream, CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION, CompressionStrategy As Integer = zlib.Z_DEFAULT_STRATEGY, WindowBits As Integer = zlib.Z_DETECT, MemoryLevel As Integer = zlib.DEFAULT_MEM_LVL)

##Parameters

Name Type Comment
Source MemoryBlock, BinaryStream A zero-length MemoryBlock or BinaryStream to use for output, or a >0 length MemoryBlock or BinaryStream 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 Source MemoryBlock or BinaryStream. It the Source has a length of zero then compressed data will be written to the Source; otherwise, the Source will be used as input to be decompressed.

Entry-level points of interest denoted by "☜"



Clone this wiki locally