Skip to content
Andrew Lambert edited this page Nov 26, 2022 · 11 revisions

zlib.Compress (Deprecated)

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.

Remarks

This method has been deprecated in favor of the zlib.Deflate method.

Compresses the passed MemoryBlock.

See also

Entry-level points of interest denoted by "☜"



Clone this wiki locally