ZipApi_CompressBank

Description

Function ZipApi_CompressBank%(
bankHandle%,
compressionLevel = ZIPAPI_DEFAULT_COMPRESSION%
)

Compress a bank, and return the result as a new bank with size information appended. If you are only using Blitz banks, it's best to use this function to prevent buffer errors. It's also useful when sending data across a network, as the other machine will be able to find out the size of the uncompressed data.

Parameters

bankHandle

The handle of the bank to compress.

compressionLevel = ZIPAPI_DEFAULT_COMPRESSION

Return Values

Bank containing compressed data, or an error code if there was an error.