mi_
prefixed implementations of various Posix, Unix, and C++ allocation functions.
More...
|
size_t | mi_malloc_size (const void *p) |
|
size_t | mi_malloc_usable_size (const void *p) |
|
void | mi_cfree (void *p) |
| Just as free but also checks if the pointer p belongs to our heap. More...
|
|
int | mi_posix_memalign (void **p, size_t alignment, size_t size) |
|
int | mi__posix_memalign (void **p, size_t alignment, size_t size) |
|
void * | mi_memalign (size_t alignment, size_t size) |
|
void * | mi_valloc (size_t size) |
|
void * | mi_pvalloc (size_t size) |
|
void * | mi_aligned_alloc (size_t alignment, size_t size) |
|
void * | mi_reallocarray (void *p, size_t count, size_t size) |
|
void | mi_free_size (void *p, size_t size) |
|
void | mi_free_size_aligned (void *p, size_t size, size_t alignment) |
|
void | mi_free_aligned (void *p, size_t alignment) |
|
void * | mi_new (std::size_t n) noexcept(false) |
| raise std::bad_alloc exception on failure. More...
|
|
void * | mi_new_aligned (std::size_t n, std::align_val_t alignment) noexcept(false) |
| raise std::bad_alloc exception on failure. More...
|
|
void * | mi_new_nothrow (size_t n) |
| return NULL on failure. More...
|
|
void * | mi_new_aligned_nothrow (size_t n, size_t alignment) |
| return NULL on failure. More...
|
|
mi_
prefixed implementations of various Posix, Unix, and C++ allocation functions.
Defined for convenience as all redirect to the regular mimalloc API.
◆ mi__posix_memalign()
int mi__posix_memalign |
( |
void ** |
p, |
|
|
size_t |
alignment, |
|
|
size_t |
size |
|
) |
| |
◆ mi_aligned_alloc()
void* mi_aligned_alloc |
( |
size_t |
alignment, |
|
|
size_t |
size |
|
) |
| |
◆ mi_cfree()
void mi_cfree |
( |
void * |
p | ) |
|
Just as free
but also checks if the pointer p
belongs to our heap.
◆ mi_free_aligned()
void mi_free_aligned |
( |
void * |
p, |
|
|
size_t |
alignment |
|
) |
| |
◆ mi_free_size()
void mi_free_size |
( |
void * |
p, |
|
|
size_t |
size |
|
) |
| |
◆ mi_free_size_aligned()
void mi_free_size_aligned |
( |
void * |
p, |
|
|
size_t |
size, |
|
|
size_t |
alignment |
|
) |
| |
◆ mi_malloc_size()
size_t mi_malloc_size |
( |
const void * |
p | ) |
|
◆ mi_malloc_usable_size()
size_t mi_malloc_usable_size |
( |
const void * |
p | ) |
|
◆ mi_memalign()
void* mi_memalign |
( |
size_t |
alignment, |
|
|
size_t |
size |
|
) |
| |
◆ mi_new()
void* mi_new |
( |
std::size_t |
n | ) |
|
|
noexcept |
raise std::bad_alloc
exception on failure.
◆ mi_new_aligned()
void* mi_new_aligned |
( |
std::size_t |
n, |
|
|
std::align_val_t |
alignment |
|
) |
| |
|
noexcept |
raise std::bad_alloc
exception on failure.
◆ mi_new_aligned_nothrow()
void* mi_new_aligned_nothrow |
( |
size_t |
n, |
|
|
size_t |
alignment |
|
) |
| |
◆ mi_new_nothrow()
void* mi_new_nothrow |
( |
size_t |
n | ) |
|
◆ mi_posix_memalign()
int mi_posix_memalign |
( |
void ** |
p, |
|
|
size_t |
alignment, |
|
|
size_t |
size |
|
) |
| |
◆ mi_pvalloc()
void* mi_pvalloc |
( |
size_t |
size | ) |
|
◆ mi_reallocarray()
void* mi_reallocarray |
( |
void * |
p, |
|
|
size_t |
count, |
|
|
size_t |
size |
|
) |
| |
◆ mi_valloc()
void* mi_valloc |
( |
size_t |
size | ) |
|