Mallocator

Wrapper for malloc/realloc/free from the C standard library.

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.

Properties

alignment
immutable(uint) alignment [@property getter]
instance
Mallocator instance [@property getter]

Static allocator instance and initializer.

Inherited Members

From Allocator

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.

alignment
immutable(uint) alignment [@property getter]

Meta