dsResize

Resizes a previously allocated array in the data segment to the specified length.

static @nogc
void
dsResize
(
T : U[]
U
)
(
ref T arr
,
size_t length
)

Parameters

T

The array type.

arr T

The array to be resized.

length size_t

The new length of the array.

Remarks: No validation is done that arr was previously allocated with dsNew, stay vigilant.

Meta