-
-
Notifications
You must be signed in to change notification settings - Fork 4
zlib.Uncompress
Andrew Lambert edited this page Dec 8, 2016
·
11 revisions
#zlib.Uncompress
##Method Signature
Protected Function Uncompress(Data As MemoryBlock, ExpandedSize As Integer = -1, DataSize As Integer = -1) As MemoryBlock##Parameters
| 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
|
##Return value The decompressed data.
##Notes 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.
##See also
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.