decline-cookies / anvil-unity-dots

Unity DOTS and ECS specific additions and extensions to Anvil
MIT License
4 stars 1 forks source link

UnsafeArray - Add support for NativeArray<T>.ReadOnly #181

Closed mbaker3 closed 1 year ago

mbaker3 commented 1 year ago

Add NativeArray<T>.ReadOnly overloads for methods that accept only accept NativeArray<T>.

What is the current behaviour?

No operations are available if using a NativeArray<T>.ReadOnly instance.

What is the new behaviour?

Any read only operation you can do with NativeArray<T> may now also be performed on a NativeArray<T>.ReadOnly instance.

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?