-
-
Notifications
You must be signed in to change notification settings - Fork 3
zlib.GZip
Andrew Lambert edited this page Aug 23, 2016
·
19 revisions
#zlib.GZip
##Method Signatures
Protected Function GZip(Source As FolderItem, CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION) As MemoryBlock
Protected Function GZip(Source As MemoryBlock, CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION) As MemoryBlock
Protected Function GZip(Source As Readable, CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION) As MemoryBlock
Protected Function GZip(Source As FolderItem, Destination As FolderItem, CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION, Overwrite As Boolean = False) As Boolean
Protected Function GZip(Source As MemoryBlock, Destination As FolderItem, CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION, Overwrite As Boolean = False) As Boolean
Protected Function GZip(Source As Readable, Destination As FolderItem, Overwrite As Boolean = False, CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION) As Boolean
Protected Function GZip(Source As Readable, Destination As Writeable, CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION) As Boolean
##Parameters
Name | Type | Comment |
---|---|---|
Source |
FolderItem , Readable , MemoryBlock
|
The data to compress |
Destination |
FolderItem , Writeable
|
The file or stream to which compressed data should be written. Methods which return a MemoryBlock do not have this parameter |
CompressionLevel | Integer |
Optional. If specified, the compression level (0=none, 1=fast, 9=best) to use |
##Return value
Returns True
if there were no errors writing to a Writeable
or FolderItem; or, a MemoryBlock
containing the compressed data.
##Notes
Compresses data from the Source
argument into the Destination
argument using GZip; methods without a Destination
argument return the compressed data instead.
##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.