Namespace Unity.XR.CoreUtils.Collections
Classes
HashSetList<T>
Wrapper data structure for hashset, that leans on a list for deterministic sort order
ReadOnlyList<T>
Wraps a List<T> to provide a read-only view of its memory without copying any elements.
It is preferable to use this collection in API designs instead of IReadOnlyCollection
because
GetEnumerator() returns a value-type enumerator and does not perform any heap allocations.
SerializableDictionary<TKey, TValue>
A dictionary class that can be serialized by Unity. Inspired by the implementation in http://answers.unity3d.com/answers/809221/view.html
Structs
ReadOnlyListSpan<T>
Wraps a list or array to provide a read-only view of some or all elements. Elements are not copied, so if the
underlying collection changes, the ReadOnlyListSpan
will see the updated elements.
ReadOnlyListSpan<T>.Enumerator
Provides an enumerator for the elements of ReadOnlyListSpan
.
SerializableDictionary<TKey, TValue>.Item
Class that stores the serialized items in this dictionary.