Function makeArrayOrPanic

Allocates a T[] of count elements from the region, panicking on failure.

T[] makeArrayOrPanic(T)(
  ref WasmAllocator a,
  size_t count
);

Modelled after std.experimental.allocator.makeArray with an OOM-panic policy.

Parameters

NameDescription
a the region to allocate from
count number of elements

Returns

A T[] slice backed by the region.