Go to the documentation of this file.
63 void *
opj_calloc(
size_t numOfElements,
size_t sizeOfElements);
96 #if defined(__GNUC__) && !defined(OPJ_SKIP_POISON)
97 #pragma GCC poison malloc calloc realloc free
void opj_free(void *m)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
void * opj_calloc(size_t num, size_t size)
Allocate a memory block with elements initialized to 0.
Definition: opj_malloc.c:198
#define SIZE_MAX
Definition: opj_malloc.c:40
void * opj_aligned_malloc(size_t size)
Allocate memory aligned to a 16 byte boundary.
Definition: opj_malloc.c:207
#define INLINE
Definition: openjpeg.h:65
void * opj_aligned_realloc(void *ptr, size_t size)
Definition: opj_malloc.c:211
uint8_t OPJ_UINT8
Definition: openjpeg.h:128
void opj_aligned_free(void *ptr)
Definition: opj_malloc.c:225
void * opj_aligned_32_realloc(void *ptr, size_t size)
Definition: opj_malloc.c:220
void * opj_aligned_32_malloc(size_t size)
Allocate memory aligned to a 32 byte boundary.
Definition: opj_malloc.c:216
void * opj_realloc(void *ptr, size_t new_size)
Reallocate memory blocks.
Definition: opj_malloc.c:239
void * opj_malloc(size_t size)
Allocate an uninitialized memory block.
Definition: opj_malloc.c:191
void * opj_aligned_32_realloc(void *ptr, size_t size)
Definition: opj_malloc.c:220
void opj_free(void *ptr)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
void * opj_calloc(size_t numOfElements, size_t sizeOfElements)
Allocate a memory block with elements initialized to 0.
Definition: opj_malloc.c:198
void opj_aligned_free(void *ptr)
Definition: opj_malloc.c:225
void * opj_aligned_malloc(size_t size)
Allocate memory aligned to a 16 byte boundary.
Definition: opj_malloc.c:207
void * opj_malloc(size_t size)
Allocate an uninitialized memory block.
Definition: opj_malloc.c:191
static INLINE void * opj_aligned_realloc_n(void *ptr, size_t alignment, size_t new_size)
Definition: opj_malloc.c:107
void * opj_aligned_32_malloc(size_t size)
Allocate memory aligned to a 32 byte boundary.
Definition: opj_malloc.c:216
void * opj_aligned_realloc(void *ptr, size_t size)
Definition: opj_malloc.c:211
static INLINE void * opj_aligned_alloc_n(size_t alignment, size_t size)
Definition: opj_malloc.c:43
void * opj_realloc(void *m, size_t s)
Reallocate memory blocks.
Definition: opj_malloc.c:239