_d_arrayshrinkfit

Shrink the "allocated" length of an array to be the exact size of the array.

It doesn't matter what the current allocated length of the array is, the user is telling the runtime that he knows what he is doing.

extern (C)
void
_d_arrayshrinkfit
(
const TypeInfo ti
,
void[] arr
)

Parameters

ti TypeInfo

TypeInfo of array type

arr void[]

array to shrink. Its .length is element length, not byte length, despite void type

Meta