appendable GC block.
GC.getArrayUsed
void[] getArrayUsed(void * ptr, bool atomic = false) nothrow;Get the current used capacity of an array block.
Note that this is only needed if you are about to change the array used size and need to deal with the memory that is about to go away. For appending or shrinking arrays that have no destructors, you probably don't need this function.
Parameters
ptr | The pointer to check. This can be an interior pointer, but if it is beyond the end of the used space, the return value may not be valid. |
atomic | The value is fetched atomically (for shared arrays) |
Returns
Current array slice, or null if the pointer does not point to a valid