99 if (zip_info == (
ZIPInfo *) NULL)
101 (void) memset(zip_info,0,
sizeof(*zip_info));
103 zip_info->
level=level;
136 return(zip_info->
chaos);
226 (void) memset(&stream,0,
sizeof(stream));
229 stream.opaque=(voidpf) NULL;
230 status=deflateInit(&stream,(
int) zip_info->
level);
234 "unable to increase entropy `%s'",strerror(errno));
243 status=deflate(&stream,Z_FINISH);
244 if (status != Z_STREAM_END)
247 "unable to increase entropy `%s'",strerror(errno));
251 status=deflateEnd(&stream);
255 "unable to increase entropy `%s'",strerror(errno));
307 (void) memset(&stream,0,
sizeof(stream));
310 stream.opaque=(voidpf) NULL;
311 status=inflateInit(&stream);
315 "unable to restore entropy `%s'",strerror(errno));
323 status=inflate(&stream,Z_FINISH);
324 if (status != Z_STREAM_END)
327 "unable to restore entropy `%s'",strerror(errno));
331 status=inflateEnd(&stream);
335 "unable to restore entropy `%s'",strerror(errno));
#define WizardAssert(domain, predicate)
#define ThrowWizardFatalError(domain, error)
WizardExport WizardBooleanType ThrowWizardException(ExceptionInfo *exception, const char *module, const char *function, const size_t line, const ExceptionType severity, const char *format,...)
WizardBooleanType LogWizardEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
#define GetWizardModule()
WizardExport void * AcquireWizardMemory(const size_t size)
WizardExport void * AcquireQuantumMemory(const size_t count, const size_t quantum)
WizardExport void * RelinquishWizardMemory(void *memory)
WizardExport void SetStringInfoLength(StringInfo *string_info, const size_t length)
WizardExport size_t GetStringInfoLength(const StringInfo *string_info)
WizardExport StringInfo * AcquireStringInfo(const size_t length)
WizardExport unsigned char * GetStringInfoDatum(const StringInfo *string_info)
WizardExport StringInfo * DestroyStringInfo(StringInfo *string_info)
WizardExport ZIPInfo * DestroyZIPInfo(ZIPInfo *zip_info)
WizardExport ZIPInfo * AcquireZIPInfo(const size_t level)
WizardExport WizardBooleanType RestoreZIP(ZIPInfo *zip_info, const size_t length, const StringInfo *message, ExceptionInfo *exception)
WizardExport const StringInfo * GetZIPChaos(const ZIPInfo *zip_info)
WizardExport WizardBooleanType IncreaseZIP(ZIPInfo *zip_info, const StringInfo *message, ExceptionInfo *exception)
static void RelinquishZIPMemory(voidpf context, voidpf memory)
static voidpf AcquireZIPMemory(voidpf context, uInt items, uInt size)