Class Mallocator

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

class Mallocator
  : Allocator ;

Properties

NameTypeDescription
alignment[get] immutable(uint)
instance[get] MallocatorStatic allocator instance and initializer.

Methods

NameDescription
allocate (size) Allocates size bytes of memory.
deallocate (p) Deallocates a memory block.
reallocate (p, size) Increases or decreases the size of a memory block.