Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FSimpleStreamableAssetManager > API/Runtime/Engine/FSimpleStreamableAssetManager/TSimpleSparseArray
Description
Returns a contiguous view over [0..LastUsed+1) covering every set bit in UsedElements up to the highest, or an empty view when no bit is set (FindLast returns INDEX_NONE, so the view length is 0). The view INCLUDES holes at unused indices in between consumers must filter via the per-element validity check (typically ObjectRegistrationIndex == INDEX_NONE) before using an entry. When the array is sparse the per-iteration cost still scales with the prefix length rather than the used-element count; a future tightening could iterate UsedElements directly via TConstSetBitIterator on the screen-size hot path. Cheap when UsedElementsCount is close to LastUsed+1.
| Name | GetSparseView |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Streaming/SimpleStreamableAssetManager.h |
| Include Path | #include "Streaming/SimpleStreamableAssetManager.h" |
TConstArrayView< T > GetSparseView() const