MagickCore 7.0.10
bzip.c File Reference
#include "wizard/studio.h"
#include "wizard/bzip.h"
#include "wizard/exception.h"
#include "wizard/exception-private.h"
#include "wizard/memory_.h"
#include "bzlib.h"
Include dependency graph for bzip.c:

Go to the source code of this file.

Data Structures

struct  _BZIPInfo
 

Functions

WizardExport BZIPInfoAcquireBZIPInfo (const size_t level)
 
WizardExport BZIPInfoDestroyBZIPInfo (BZIPInfo *bzip_info)
 
WizardExport const StringInfoGetBZIPChaos (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)
 

Function Documentation

◆ AcquireBZIPInfo()

◆ AcquireBZIPMemory()

static void * AcquireBZIPMemory ( void *  context,
int  items,
int  size 
)
static

Definition at line 202 of file bzip.c.

References AcquireQuantumMemory().

Referenced by IncreaseBZIP(), and RestoreBZIP().

◆ bz_internal_error()

WizardExport void bz_internal_error ( int  error)

Definition at line 207 of file bzip.c.

References AssertError, EntropyDomain, and ThrowWizardFatalError.

◆ DestroyBZIPInfo()

◆ GetBZIPChaos()

WizardExport const StringInfo * GetBZIPChaos ( const BZIPInfo bzip_info)

◆ IncreaseBZIP()

◆ RelinquishBZIPMemory()

static void RelinquishBZIPMemory ( void *  context,
void *  memory 
)
static

Definition at line 212 of file bzip.c.

References RelinquishWizardMemory().

Referenced by IncreaseBZIP(), and RestoreBZIP().

◆ RestoreBZIP()