-
-
Notifications
You must be signed in to change notification settings - Fork 3
zlib.ZStream.Constructor
Andrew Lambert edited this page Dec 19, 2016
·
22 revisions
##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
MemoryBlock has a Size
of zero, or as a BinaryStream its Length
is equal to its position, then compressed data will be written to the Source
; otherwise, the Source
will be used as input to be decompressed.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.