mi_malloc_small

Allocate a small object.

extern (C) @nogc pure @system nothrow
void*
mi_malloc_small
(
size_t size
)

Parameters

size
Type: size_t

The size in bytes, can be at most MI_SMALL_SIZE_MAX.

Return Value

Type: void*

a pointer to newly allocated memory of at least size bytes, or NULL if out of memory. This function is meant for use in run-time systems for best performance and does not check if size was indeed small – use with care!

Meta