CompressMemory()

Syntax

Result = CompressMemory(*Buffer [, Offset, Size]))
Description
Compress the specified buffer content and returns a new compressed buffer.

Parameters

*Buffer The memory buffer to compress. It has to be allocated with AllocateMemory().
Offset (optional) The offset (in bytes) in the buffer. If not specified, the whole buffer is compressed.
Size (optional) The amount of bytes to compress. If not specified, the whole buffer is compressed.

Return value

Return the compressed buffer if it success, zero otherwise.

See Also

UncompressMemory()

Supported OS

All

Packer Index - CompressString() ->