xbuffer.memory

Undocumented in source.

Members

Functions

xalloc
T xalloc(E args)

Allocates memory for a class and emplaces it.

xcalloc
void[] xcalloc(size_t nitems, size_t size)

Uses pureCalloc to allocate a block of memory of the given size and trows an outOfMemoryError if the memory cannot be allocated.

xfree
void xfree(T[] array)

Uses pureFree to release allocated memory.

xfree
void xfree(void* ptr)

Uses pureFree to release allocated memory.

xfree
void xfree(T obj)

Deallocates a class allocated with xalloc and calls its custom destructor (__xdtor pure, nothrow and @nogc method).

xmalloc
void[] xmalloc(size_t size)

Uses pureMalloc to allocate a block of memory of the given size and throws an outOfMemoryError if the memory cannot be allocated.

xrealloc
void[] xrealloc(void* ptr, size_t size)

Uses pureRealloc to realloc a block of memory and throws an outOfMemoryError if the memory cannot be allocated.

xrealloc
void[] xrealloc(T[] buffer, size_t size)

Reallocates the given array using a new size.

Meta