HmodBlockAllocator.allocate

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