ArrayData.slice

ArrayData slice(size_t start, size_t len) const @trusted pure nothrow

Zero-copy slice: advances offset, sets length, re-bases the validity bitmap over the visible window and recomputes nullCount. The value buffers are shared unchanged.

Parameters

startfirst visible slot of the result, within this chunk
lennumber of slots of the result

Returns

the sliced chunk sharing this storage.