allocAlignedRaw

fnT[] allocAlignedRaw(T)(size_t count) @trusted pure nothrow

The unzeroed counterpart of allocAligned, for value buffers the caller fully overwrites before anyone can read them (the value runs of the primitive and string builders): null slots hold arbitrary bits (D14), so stale words are harmless there, while bitmap storage must keep using the zeroing allocAligned (fact 5).

Parameters

Tthe element type the buffer will be used as
countnumber of elements to allocate

Returns

a mutable, BUFFER_ALIGNMENT-aligned, GC-owned slice of

exactly count elements with arbitrary contents.