12345678module juptune.crypto.memory;
void contigiousSlice(
T
)(
size_t[] lengths,
*[] slices
);
Slices the memory into the specified slices, ensuring that the slices do not overlap.
lengthsand slicesmust be the same length.
The lengths must all be an exact multiple of T.sizeof.
The slices must all be non-null.
The total length of the slices cannot exceed the length of the memory.
Additionally there is an internal numeric overflow check.
lengths[0]matches with slices[0], lengths[1]with slices[1], etc...