mi_zalloc_small

Allocate a zero initialized small object.

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

Parameters

size size_t

The size in bytes, can be at most MI_SMALL_SIZE_MAX.

Return Value

Type: void*

a pointer to newly allocated zero-initialized 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