_d_arrayshrinkfit(Tarr : T[], T)(Tarrarr, boolisshared);| T | the type of the elements in the array (this should be unqualified) |
Tarrarr | array to shrink. Its.length is element length, not byte length, despitevoid type |
boolisshared | true if the underlying data is shared |
_d_arraysetcapacityPureNothrow(T)(size_tnewcapacity, void[]*p, boolisshared);| T | the type of the elements in the array (this should be unqualified) |
size_tnewcapacity | requested new capacity |
void[]*p | pointer to array to set. Itslength is left unchanged. |
boolisshared | true if the underlying data is shared |
_d_arraysetlengthT(Tarr : T[], T)(return ref scope Tarrarr, size_tnewlength);void main(){int[] a = [1, 2]; a.length = 3;// Gets lowered to `_d_arraysetlengthT!(int)(a, 3, false)`}
Tarrarr | The array to resize. |
size_tnewlength | The new value for the array's.length. |