I meant the function: ---- void at(T)(ref Tarray arr, size_t index, T* elem) { if (index >= arr.length || elem is null) return; memcpy(elem, &arr.ptr[index], T.sizeof); } ---- -> arr.ptr[index]