Class Mallocator
Wrapper for malloc/realloc/free from the C standard library.
Properties
Name | Type | Description |
---|---|---|
alignment [get]
|
immutable(uint) | |
instance [get]
|
Mallocator | Static allocator instance and initializer. |
Methods
Name | Description |
---|---|
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. |