Photon Fusion
2.0.9
Read-only version of NetworkLinkedList<T>. More...
Public Member Functions | |
| bool | Contains (T value) |
| Returns true if the value already exists in the list. More... | |
| bool | Contains (T value, IEqualityComparer< T > comparer) |
| Returns true if the value already exists in the list. More... | |
| T | Get (int index) |
| Returns the value at supplied index. More... | |
| int | IndexOf (T value) |
| Returns the index with this value. Returns -1 if not found. More... | |
| int | IndexOf (T value, IEqualityComparer< T > equalityComparer) |
| Returns the index of the first occurrence of a value in the FixedArray. More... | |
Static Public Attributes | |
| const int | ELEMENT_WORDS = 2 |
| Returns the number of words required to store a single element. More... | |
| const int | META_WORDS = 3 |
| Returns the number of words required to store the list metadata. More... | |
Properties | |
| int | Capacity [get] |
| Returns the max element count. More... | |
| int | Count [get] |
| Returns the current element count. More... | |
| T | this[int index] [get] |
| Element indexer. More... | |
Read-only version of NetworkLinkedList<T>.
| T | Custom struct type. |
| bool Contains | ( | T | value | ) |
Returns true if the value already exists in the list.
| bool Contains | ( | T | value, |
| IEqualityComparer< T > | comparer | ||
| ) |
Returns true if the value already exists in the list.
| T Get | ( | int | index | ) |
Returns the value at supplied index.
| int IndexOf | ( | T | value | ) |
Returns the index with this value. Returns -1 if not found.
| int IndexOf | ( | T | value, |
| IEqualityComparer< T > | equalityComparer | ||
| ) |
Returns the index of the first occurrence of a value in the FixedArray.
| value | The value to locate in the FixedArray. The value can be null for reference types. |
| equalityComparer | An equality comparer to compare values. Must not be null. |
This method performs a linear search; therefore, this method is an O(n) operation, where n is Capacity.
|
static |
Returns the number of words required to store a single element.
|
static |
Returns the number of words required to store the list metadata.
|
get |
Returns the max element count.
|
get |
Returns the current element count.
|
get |
Element indexer.