MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
memory_.h File Reference
#include <errno.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

◆ AcquireAlignedMemoryHandler

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

Definition at line 30 of file memory_.h.

◆ AcquireMemoryHandler

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

Definition at line 30 of file memory_.h.

◆ DestroyMemoryHandler

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

Definition at line 30 of file memory_.h.

◆ MemoryInfo

typedef struct _MemoryInfo MemoryInfo

Definition at line 28 of file memory_.h.

◆ RelinquishAlignedMemoryHandler

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

Definition at line 30 of file memory_.h.

◆ ResizeMemoryHandler

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

Definition at line 30 of file memory_.h.

Function Documentation

◆ AcquireAlignedMemory()

MagickExport void * AcquireAlignedMemory ( const  size_t,
const  size_t 
)

◆ AcquireCriticalMemory()

MagickExport void * AcquireCriticalMemory ( const  size_t)

◆ AcquireMagickMemory()

MagickExport void * AcquireMagickMemory ( const  size_t)

◆ AcquireQuantumMemory()

MagickExport void * AcquireQuantumMemory ( const  size_t,
const  size_t 
)

◆ AcquireVirtualMemory()

MagickExport MemoryInfo * AcquireVirtualMemory ( const  size_t,
const  size_t 
)

◆ CopyMagickMemory()

MagickExport void * CopyMagickMemory ( void *  magick_restrict,
const void *  magick_restrict,
const  size_t 
)

◆ DestroyMagickMemory()

MagickExport void DestroyMagickMemory ( void  )

◆ GetMagickMemoryMethods()

MagickExport void GetMagickMemoryMethods ( AcquireMemoryHandler ,
ResizeMemoryHandler ,
DestroyMemoryHandler  
)

◆ GetMaxMemoryRequest()

◆ GetVirtualMemoryBlob()

MagickExport void * GetVirtualMemoryBlob ( const MemoryInfo )

◆ HeapOverflowSanityCheck()

static MagickBooleanType HeapOverflowSanityCheck ( const size_t  count,
const size_t  quantum 
)
inlinestatic

Definition at line 70 of file memory_.h.

References MagickFalse, and MagickTrue.

◆ HeapOverflowSanityCheckGetSize()

static MagickBooleanType HeapOverflowSanityCheckGetSize ( const size_t  count,
const size_t  quantum,
size_t *const  extent 
)
inlinestatic

◆ RelinquishAlignedMemory()

MagickExport void * RelinquishAlignedMemory ( void *  )

◆ RelinquishMagickMemory()

MagickExport void * RelinquishMagickMemory ( void *  )

◆ RelinquishVirtualMemory()

◆ ResetMagickMemory()

MagickExport void * ResetMagickMemory ( void *  ,
int  ,
const  size_t 
)

◆ ResizeMagickMemory()

MagickExport void * ResizeMagickMemory ( void *  ,
const  size_t 
)

◆ ResizeQuantumMemory()

MagickExport void * ResizeQuantumMemory ( void *  ,
const  size_t,
const  size_t 
)

◆ SetMagickAlignedMemoryMethods()

MagickExport void SetMagickAlignedMemoryMethods ( AcquireAlignedMemoryHandler  ,
RelinquishAlignedMemoryHandler   
)

◆ SetMagickMemoryMethods()

MagickExport void SetMagickMemoryMethods ( AcquireMemoryHandler  acquire_memory_handler,
ResizeMemoryHandler  resize_memory_handler,
DestroyMemoryHandler  destroy_memory_handler 
)