AcquireBZIPInfo • DestroyBZIPInfo • GetBZIPChaos • IncreaseBZIP • RestoreBZIP
AcquireBZIPInfo
AcquireBZIPInfo() allocates the ZIPInfo structure.
The format of the AcquireBZIPInfo method is:
BZIPInfo *AcquireBZIPInfo(const size_t level)
A description of each parameter follows:
- level
- entropy level: 1 is best speed, 9 is more entropy.
DestroyBZIPInfo
DestroyBZIPInfo() zeros memory associated with the ZIPInfo structure.
The format of the DestroyBZIPInfo method is:
BZIPInfo *DestroyBZIPInfo(BZIPInfo *bzip_info)
A description of each parameter follows:
- bzip_info
- The bzip info.
GetBZIPChaos
GetBZIPChaos() returns BZIP chaos.
The format of the GetBZIPChaos method is:
const StringInfo *GetBZIPChaos(const BZIPInfo *bzip_info)
A description of each parameter follows:
- bzip_info
- The bzip info.
IncreaseBZIP
IncreaseBZIP() compresses the message to increase its entropy.
The format of the IncreaseBZIP method is:
WizardBooleanType IncreaseBZIP(BZIPInfo *bzip_info, const StringInfo *message,ExceptionInfo *exception)
A description of each parameter follows:
- bzip_info
- The address of a structure of type BZIPInfo.
- message
- The message.
- exception
- Return any errors or warnings in this structure.
RestoreBZIP
RestoreBZIP() uncompresses the message to restore its original entropy.
The format of the RestoreBZIP method is:
WizardBooleanType RestoreBZIP(BZIPInfo *bzip_info,const size_t length, const StringInfo *message,ExceptionInfo *exception)
A description of each parameter follows:
- bzip_info
- The address of a structure of type BZIPInfo.
- 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.