bc.core.memory

Undocumented in source.

Members

Functions

enforceCalloc
void* enforceCalloc(size_t nmemb, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
enforceMalloc
void* enforceMalloc(size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
enforceRealloc
void* enforceRealloc(void* ptr, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
heapAlloc
auto heapAlloc(Args args)

Allocates class or struct on the heap. It automatically emplaces it to tyhe allocated memory with provided args. On error, onOutOfMemoryError assert is called.

heapDealloc
void heapDealloc(T obj)

Deallocates heapAlloc allocated memory. It automatically calls the object destructor and removes it from GC scanning (no effect if not added there)

Imports

pureFree (from core.memory)
public import core.memory : pureFree;
Undocumented in source.

Meta