harbored-mod ~master (2020-05-12T21:38:18Z)
Dub
Repo
HmodBlockAllocator.allocate
allocator
HmodBlockAllocator
Standard allocator operation.
Returns null if bytes > blockSize.
struct
HmodBlockAllocator
(size_t blockSize)
nothrow @
trusted
void
[]
allocate
(
size_t
bytes
)
out (result) { import std.format : format; assert (!result.length || result.length == bytes, format("Allocated %d bytes when %d bytes were requested.", result.length, bytes)); }
Meta
Source
See Implementation
allocator
HmodBlockAllocator
aliases
bytesHighTide
destructors
~this
functions
allocate
deallocate
owns
writeStats
manifest constants
alignment
maxAllocationSize
postblits
this(this)
unions
__anonymous
Standard allocator operation.
Returns null if bytes > blockSize.