Wizard's Toolkit Logo Wizard's Toolkit Sprite
Unix
Mac OS X
Windows
Options
Unix
Windows

Module zip Methods

AcquireZIPInfo

AcquireZIPInfo() allocates the ZIPInfo structure.

The format of the AcquireZIPInfo method is:

  ZIPInfo *AcquireZIPInfo(const size_t level)

A description of each parameter follows:

level

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

GetZIPChaos

GetZIPChaos() returns ZIP chaos.

The format of the GetZIPChaos method is:

  const StringInfo *GetZIPChaos(const ZIPInfo *zip_info)

A description of each parameter follows:

zip_info

The zip info.

DestroyZIPInfo

DestroyZIPInfo() zeros memory associated with the ZIPInfo structure.

The format of the DestroyZIPInfo method is:

  ZIPInfo *DestroyZIPInfo(ZIPInfo *zip_info)

A description of each parameter follows:

zip_info

The zip info.

IncreaseZIP

IncreaseZIP() compresses the message to increase its entropy.

The format of the IncreaseZIP method is:

  WizardBooleanType IncreaseZIP(ZIPInfo *zip_info,
    const StringInfo *message,ExceptionInfo *exception)

A description of each parameter follows:

zip_info

The address of a structure of type ZIPInfo.

message

The message.

exception

Return any errors or warnings in this structure.

RestoreZIP

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

The format of the RestoreZIP method is:

  WizardBooleanType RestoreZIP(ZIPInfo *zip_info,const size_t length,
    const StringInfo *message,ExceptionInfo *exception)

A description of each parameter follows:

zip_info

The address of a structure of type ZIPInfo.

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.