Allow DataStreamActiveReader to be iterated either using foreach or for
What is the current behaviour?
There is no way to iterate over all of the data represented by an DataStreamActiveReader instance.
What is the new behaviour?
DataStreamActiveReader
Exposes a Length getter so that the collection may be iterated by index
Implements IEnumerable<T> so that the collection may be iterated by Enumerator<T>
The enumerator implementation is a proxy of NativeArray<T>.Enumerator but it selects the relevant payload data out of each EntityProxyInstanceWrapper<TInstance> instance.
Allow
DataStreamActiveReader
to be iterated either usingforeach
orfor
What is the current behaviour?
There is no way to iterate over all of the data represented by an
DataStreamActiveReader
instance.What is the new behaviour?
DataStreamActiveReader
Length
getter so that the collection may be iterated by indexIEnumerable<T>
so that the collection may be iterated byEnumerator<T>
NativeArray<T>.Enumerator
but it selects the relevant payload data out of eachEntityProxyInstanceWrapper<TInstance>
instance.What issues does this resolve?
What PRs does this depend on?
Does this introduce a breaking change?