MagickCore 7.0.10
|
#include "wizard/studio.h"
#include "wizard/bzip.h"
#include "wizard/exception.h"
#include "wizard/exception-private.h"
#include "wizard/memory_.h"
#include "bzlib.h"
Go to the source code of this file.
Data Structures | |
struct | _BZIPInfo |
Functions | |
WizardExport BZIPInfo * | AcquireBZIPInfo (const size_t level) |
WizardExport BZIPInfo * | DestroyBZIPInfo (BZIPInfo *bzip_info) |
WizardExport const StringInfo * | GetBZIPChaos (const BZIPInfo *bzip_info) |
static void * | AcquireBZIPMemory (void *context, int items, int size) |
WizardExport void | bz_internal_error (int error) |
static void | RelinquishBZIPMemory (void *context, void *memory) |
WizardExport WizardBooleanType | IncreaseBZIP (BZIPInfo *bzip_info, const StringInfo *message, ExceptionInfo *exception) |
WizardExport WizardBooleanType | RestoreBZIP (BZIPInfo *bzip_info, const size_t length, const StringInfo *message, ExceptionInfo *exception) |
WizardExport BZIPInfo * AcquireBZIPInfo | ( | const size_t | level | ) |
Definition at line 93 of file bzip.c.
References AcquireStringInfo(), AcquireWizardMemory(), _BZIPInfo::chaos, EntropyDomain, _BZIPInfo::level, MemoryError, _BZIPInfo::signature, ThrowWizardFatalError, _BZIPInfo::timestamp, and WizardSignature.
Referenced by AcquireEntropyInfo().
|
static |
Definition at line 202 of file bzip.c.
References AcquireQuantumMemory().
Referenced by IncreaseBZIP(), and RestoreBZIP().
WizardExport void bz_internal_error | ( | int | error | ) |
Definition at line 207 of file bzip.c.
References AssertError, EntropyDomain, and ThrowWizardFatalError.
WizardExport BZIPInfo * DestroyBZIPInfo | ( | BZIPInfo * | bzip_info | ) |
Definition at line 131 of file bzip.c.
References _BZIPInfo::chaos, DestroyStringInfo(), EntropyDomain, GetWizardModule, LogWizardEvent(), RelinquishWizardMemory(), _BZIPInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by DestroyEntropyInfo().
WizardExport const StringInfo * GetBZIPChaos | ( | const BZIPInfo * | bzip_info | ) |
Definition at line 165 of file bzip.c.
References _BZIPInfo::chaos, EntropyDomain, GetWizardModule, LogWizardEvent(), _BZIPInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by GetEntropyChaos().
WizardExport WizardBooleanType IncreaseBZIP | ( | BZIPInfo * | bzip_info, |
const StringInfo * | message, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 217 of file bzip.c.
References AcquireBZIPMemory(), _BZIPInfo::chaos, EntropyDomain, EntropyError, GetStringInfoDatum(), GetStringInfoLength(), GetWizardModule, _BZIPInfo::level, LogWizardEvent(), RelinquishBZIPMemory(), SetStringInfoLength(), _BZIPInfo::signature, ThrowWizardException(), TraceEvent, WizardAssert, WizardFalse, WizardSignature, and WizardTrue.
Referenced by IncreaseEntropy().
|
static |
Definition at line 212 of file bzip.c.
References RelinquishWizardMemory().
Referenced by IncreaseBZIP(), and RestoreBZIP().
WizardExport WizardBooleanType RestoreBZIP | ( | BZIPInfo * | bzip_info, |
const size_t | length, | ||
const StringInfo * | message, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 297 of file bzip.c.
References AcquireBZIPMemory(), _BZIPInfo::chaos, EntropyDomain, EntropyError, GetStringInfoDatum(), GetStringInfoLength(), GetWizardModule, LogWizardEvent(), RelinquishBZIPMemory(), SetStringInfoLength(), _BZIPInfo::signature, ThrowWizardException(), TraceEvent, WizardAssert, WizardFalse, WizardSignature, and WizardTrue.
Referenced by RestoreEntropy().