AcquireLZMAInfoGetLZMAChaosDestroyLZMAInfoIncreaseLZMARestoreLZMA

AcquireLZMAInfo

AcquireLZMAInfo() allocates the LZMAInfo structure.

The format of the AcquireLZMAInfo method is:

LZMAInfo *AcquireLZMAInfo(const size_t level)

A description of each parameter follows:

level
entropy level: 1 is best speed, 9 is more entropy.

GetLZMAChaos

GetLZMAChaos() returns LZMA chaos.

The format of the GetLZMAChaos method is:

const StringInfo *GetLZMAChaos(const LZMAInfo *lzma_info)

A description of each parameter follows:

lzma_info
The lzma info.

DestroyLZMAInfo

DestroyLZMAInfo() zeros memory associated with the LZMAInfo structure.

The format of the DestroyLZMAInfo method is:

LZMAInfo *DestroyLZMAInfo(LZMAInfo *lzma_info)

A description of each parameter follows:

lzma_info
The lzma info.

IncreaseLZMA

IncreaseLZMA() compresses the message to increase its entropy.

The format of the IncreaseLZMA method is:

WizardBooleanType IncreaseLZMA(LZMAInfo *lzma_info,
  const StringInfo *message,ExceptionInfo *exception)

A description of each parameter follows:

lzma_info
The address of a structure of type LZMAInfo.
message
The message.
exception
Return any errors or warnings in this structure.

RestoreLZMA

RestoreLZMA() uncompresses the message to restore its original entropy.

The format of the RestoreLZMA method is:

WizardBooleanType RestoreLZMA(LZMAInfo *lzma_info,const size_t length,
  const StringInfo *message,ExceptionInfo *exception)

A description of each parameter follows:

lzma_info
The address of a structure of type LZMAInfo.
length
The total size of the destination buffer, which must be large enough to hold the entire uncompressed data.
message
The message.
exception
Return any errors or warnings in this structure.