core.internal.array.capacity

This module contains support for controlling dynamic arrays' capacity and length

Functions 9

fnbool gc_expandArrayUsed(void[] slice, size_t newUsed, bool atomic) nothrow pure;
fnsize_t gc_reserveArrayCapacity(void[] slice, size_t request, bool atomic) nothrow pure;
fnbool gc_shrinkArrayUsed(void[] slice, size_t existingUsed, bool atomic) nothrow pure;
fnvoid[] gc_getArrayUsed(void * ptr, bool atomic) nothrow pure;
fnvoid _d_arrayshrinkfit(Tarr: T[], T)(Tarr arr, bool isshared) @trustedShrink the "allocated" length of an array to be the exact size of the array.
fnsize_t _d_arraysetcapacityPureNothrow(T)(size_t newcapacity, void[] * p, bool isshared) pure nothrow @trustedSet the array capacity.
fnsize_t _d_arraysetcapacity(T)(size_t newcapacity, void[] * p, bool isshared) @trusted
fnsize_t _d_arraysetlengthT(Tarr : T[], T)(return ref scope Tarr arr, size_t newlength) @trustedResize a dynamic array by setting its `.length` property.
private fnsize_t _d_arraysetlengthT_(Tarr : T[], T)(return ref scope Tarr arr, size_t newlength, bool isShared) @trusted