docs/group__typed.html
Loading...
Searching...
No Matches
Typed Macros
Typed allocation macros. More...
|
|
| #define | mi_malloc_tp(tp) |
| | Allocate a block of type tp.
|
| |
| #define | mi_zalloc_tp(tp) |
| | Allocate a zero-initialized block of type tp.
|
| |
| #define | mi_calloc_tp(tp, count) |
| | Allocate count zero-initialized blocks of type tp.
|
| |
| #define | mi_mallocn_tp(tp, count) |
| | Allocate count blocks of type tp.
|
| |
| #define | mi_reallocn_tp(p, tp, count) |
| | Re-allocate to count blocks of type tp.
|
| |
| #define | mi_heap_malloc_tp(tp, hp) |
| | Allocate a block of type tp in a heap hp.
|
| |
| #define | mi_heap_zalloc_tp(tp, hp) |
| | Allocate a zero-initialized block of type tp in a heap hp.
|
| |
| #define | mi_heap_calloc_tp(tp, hp, count) |
| | Allocate count zero-initialized blocks of type tp in a heap hp.
|
| |
| #define | mi_heap_mallocn_tp(tp, hp, count) |
| | Allocate count blocks of type tp in a heap hp.
|
| |
| #define | mi_heap_reallocn_tp(tp, hp, p, count) |
| | Re-allocate to count blocks of type tp in a heap hp.
|
| |
| #define | mi_heap_recalloc_tp(tp, hp, p, count) |
| | Re-allocate to count zero initialized blocks of type tp in a heap hp.
|
| |
Typed allocation macros.
For example:
int* p = mi_malloc_tp(int)
#define mi_malloc_tp(tp)
Allocate a block of type tp.
Definition mimalloc-doc.h:359
| #define mi_calloc_tp | ( | | tp, | | | | | count ) |
Allocate count zero-initialized blocks of type tp.
| #define mi_heap_calloc_tp | ( | | tp, | | | | | hp, | | | | | count ) |
Allocate count zero-initialized blocks of type tp in a heap hp.
| #define mi_heap_malloc_tp | ( | | tp, | | | | | hp ) |
Allocate a block of type tp in a heap hp.
| #define mi_heap_mallocn_tp | ( | | tp, | | | | | hp, | | | | | count ) |
Allocate count blocks of type tp in a heap hp.
| #define mi_heap_reallocn_tp | ( | | tp, | | | | | hp, | | | | | p, | | | | | count ) |
Re-allocate to count blocks of type tp in a heap hp.
| #define mi_heap_recalloc_tp | ( | | tp, | | | | | hp, | | | | | p, | | | | | count ) |
Re-allocate to count zero initialized blocks of type tp in a heap hp.
| #define mi_heap_zalloc_tp | ( | | tp, | | | | | hp ) |
Allocate a zero-initialized block of type tp in a heap hp.
| #define mi_malloc_tp | ( | | tp | ) | |
Allocate a block of type tp.
Parameters
| tp | The type of the block to allocate. |
ReturnsA pointer to an object of type tp, or NULL if out of memory.
Example:
int* p = mi_malloc_tp(int)
See alsomi_malloc()
| #define mi_mallocn_tp | ( | | tp, | | | | | count ) |
Allocate count blocks of type tp.
| #define mi_reallocn_tp | ( | | p, | | | | | tp, | | | | | count ) |
Re-allocate to count blocks of type tp.
| #define mi_zalloc_tp | ( | | tp | ) | |
Allocate a zero-initialized block of type tp.