Allocator

Abstract class implementing a basic allocator.

Members

Functions

allocate
void[] allocate(size_t size)

Allocates size bytes of memory.

deallocate
bool deallocate(void[] p)

Deallocates a memory block.

reallocate
bool reallocate(void[] p, size_t size)

Increases or decreases the size of a memory block.

reallocateInPlace
bool reallocateInPlace(void[] p, size_t size)

Reallocates a memory block in place if possible or returns $(D_KEYWORD false). This function cannot be used to allocate or deallocate memory, so if p is $(D_KEYWORD null) or size is 0, it should return $(D_KEYWORD false).

Properties

alignment
uint alignment [@property getter]

Meta