Function Region.makeArray

Allocates a typed array of length elements.

T[] makeArray(T)(
  size_t length
) nothrow @nogc;

Modelled after std.experimental.allocator.makeArray, but avoids void[]T[] array casts that pull in core.lifetime (unsupported on wasm32).

Parameters

NameDescription
length number of elements

Returns

A T[] slice backed by this region, or null on failure.