Function Allocator.allocate

Allocate memory for the given requirements

final MemAlloc allocate (
  in const(MemoryRequirements) requirements,
  in const(AllocOptions) options = AllocOptions(cast(AllocFlags)0, cast(MemoryUsage)0, cast(MemProps)0, cast(MemProps)0, 0u)
);

Returns

A MemAlloc object

Throws

An Exception if memory could not be allocated