Skip to content
Andrew Lambert edited this page May 20, 2016 · 11 revisions

#zlib.Compress

##Method Signature

 Protected Function Compress(Data As MemoryBlock, CompressionLevel As Integer = Z_DEFAULT_COMPRESSION, DataSize As Integer = -1) As MemoryBlock

##Parameters

Name Type Comment
Data MemoryBlock The data to be compressed
CompressionLevel Integer Optional. The level of compression (fast=1, best=9)
DataSize Integer Optional. The size of the Data in bytes. Specify this parameter if Data.Size=-1

##Return value The compressed data.

##Notes Compresses the passed MemoryBlock.

##See also

Entry-level points of interest denoted by "☜"



Clone this wiki locally