-
-
Notifications
You must be signed in to change notification settings - Fork 3
zlib.Uncompress
Andrew Lambert edited this page Mar 15, 2017
·
11 revisions
#zlib.Uncompress
Protected Function Uncompress(Data As MemoryBlock, ExpandedSize As Integer = -1, DataSize As Integer = -1) As MemoryBlock
Name | Type | Comment |
---|---|---|
Data | MemoryBlock | The data to be decompressed |
ExpandedSize | Integer | Optional. If specified, the decompressed size of Data in bytes. |
DataSize | Integer | Optional. If specified, the actual size of Data in bytes. Specify this parameter if Data.Size=-1
|
The decompressed data.
Decompresses the passed MemoryBlock.
If the decompressed size is known it may be passed as ExpandedSize
. If ExpandedSize
is not set then the decompression operation will be repeated with progressively larger output buffers until it succeeds.
If Data.Size
is -1
(e.g. converted from a Ptr) then you must specify the size as DataSize
or the operation will fail.
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.