MagickCore  7.0.10
memory_.h File Reference
#include <errno.h>
#include <assert.h>
Include dependency graph for memory_.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct _MemoryInfo MemoryInfo
 
typedef void *(* AcquireMemoryHandler )(size_t) magick_alloc_size(1)
 
typedef void *(*)(* DestroyMemoryHandler )(void *)
 
typedef void *(*)(*)*(* ResizeMemoryHandler )(void *, size_t) magick_alloc_size(2)
 
typedef void *(*)(*)*(*)*(* AcquireAlignedMemoryHandler )(const size_t, const size_t)
 
typedef void *(*)(*)*(*)*(*)(* RelinquishAlignedMemoryHandler )(void *)
 

Functions

MagickExport MemoryInfoAcquireVirtualMemory (const size_t, const size_t) magick_alloc_sizes(1
 
MagickExport MemoryInfoRelinquishVirtualMemory (MemoryInfo *)
 
MagickExport size_t GetMaxMemoryRequest (void)
 
MagickExport void * AcquireAlignedMemory (const size_t, const size_t) magick_attribute((__malloc__)) magick_alloc_sizes(1
 
MagickExport void * AcquireMagickMemory (const size_t) magick_attribute((__malloc__)) magick_alloc_size(1)
 
MagickExport void * AcquireCriticalMemory (const size_t)
 
MagickExport void * AcquireQuantumMemory (const size_t, const size_t) magick_attribute((__malloc__)) magick_alloc_sizes(1
 
MagickExport void * CopyMagickMemory (void *magick_restrict, const void *magick_restrict, const size_t) magick_attribute((__nonnull__))
 
MagickExport void DestroyMagickMemory (void)
 
MagickExport void GetMagickMemoryMethods (AcquireMemoryHandler *, ResizeMemoryHandler *, DestroyMemoryHandler *)
 
MagickExport void * GetVirtualMemoryBlob (const MemoryInfo *)
 
MagickExport void * RelinquishAlignedMemory (void *)
 
MagickExport void * RelinquishMagickMemory (void *)
 
MagickExport void * ResetMagickMemory (void *, int, const size_t)
 
MagickExport void * ResizeMagickMemory (void *, const size_t) magick_attribute((__malloc__)) magick_alloc_size(2)
 
MagickExport void * ResizeQuantumMemory (void *, const size_t, const size_t) magick_attribute((__malloc__)) magick_alloc_sizes(2
 
MagickExport void SetMagickAlignedMemoryMethods (AcquireAlignedMemoryHandler, RelinquishAlignedMemoryHandler)
 
MagickExport void SetMagickMemoryMethods (AcquireMemoryHandler, ResizeMemoryHandler, DestroyMemoryHandler)
 
static MagickBooleanType HeapOverflowSanityCheck (const size_t count, const size_t quantum)
 
static MagickBooleanType HeapOverflowSanityCheckGetSize (const size_t count, const size_t quantum, size_t *const extent)
 

Typedef Documentation

typedef void*(*)(*) *(*) *(* AcquireAlignedMemoryHandler)(const size_t, const size_t)

Definition at line 35 of file memory_.h.

typedef void*(* AcquireMemoryHandler)(size_t) magick_alloc_size(1)

Definition at line 32 of file memory_.h.

typedef void*(*)(* DestroyMemoryHandler)(void *)

Definition at line 33 of file memory_.h.

typedef struct _MemoryInfo MemoryInfo

Definition at line 28 of file memory_.h.

typedef void*(*)(*) *(*) *(*)(* RelinquishAlignedMemoryHandler)(void *)

Definition at line 36 of file memory_.h.

typedef void*(*)(*) *(* ResizeMemoryHandler)(void *, size_t) magick_alloc_size(2)

Definition at line 34 of file memory_.h.

Function Documentation

MagickExport void* AcquireAlignedMemory ( const size_t  ,
const size_t   
)
MagickExport void * AcquireCriticalMemory ( const size_t  )
MagickExport void * AcquireMagickMemory ( const size_t  )
MagickExport void * AcquireQuantumMemory ( const size_t  ,
const size_t   
)
MagickExport MemoryInfo* AcquireVirtualMemory ( const size_t  ,
const size_t   
)
MagickExport void * CopyMagickMemory ( void *  magick_restrict,
const void *  magick_restrict,
const size_t   
)
MagickExport void DestroyMagickMemory ( void  )
MagickExport void GetMagickMemoryMethods ( AcquireMemoryHandler ,
ResizeMemoryHandler ,
DestroyMemoryHandler  
)
MagickExport size_t GetMaxMemoryRequest ( void  )
MagickExport void * GetVirtualMemoryBlob ( const MemoryInfo )
static MagickBooleanType HeapOverflowSanityCheck ( const size_t  count,
const size_t  quantum 
)
inlinestatic

Definition at line 71 of file memory_.h.

References MagickFalse, and MagickTrue.

static MagickBooleanType HeapOverflowSanityCheckGetSize ( const size_t  count,
const size_t  quantum,
size_t *const  extent 
)
inlinestatic
MagickExport void * RelinquishAlignedMemory ( void *  )
MagickExport void * RelinquishMagickMemory ( void *  )
MagickExport void * ResetMagickMemory ( void *  ,
int  ,
const size_t   
)
MagickExport void * ResizeMagickMemory ( void *  ,
const size_t   
)
MagickExport void * ResizeQuantumMemory ( void *  ,
const size_t  ,
const size_t   
)
MagickExport void SetMagickAlignedMemoryMethods ( AcquireAlignedMemoryHandler  ,
RelinquishAlignedMemoryHandler   
)