Struct VectorArray<T>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Syntax
public struct VectorArray<T>
Type Parameters
Constructors
VectorArray(T[], UInt32, UInt32, Boolean)
Declaration
public VectorArray(T[] array, uint offset, uint count, bool clearToDefault)
Parameters
Type |
Name |
Description |
T[] |
array |
|
System.UInt32 |
offset |
|
System.UInt32 |
count |
|
System.Boolean |
clearToDefault |
|
VectorArray(UInt32, Boolean)
Declaration
public VectorArray(uint capacity, bool clearToDefault)
Parameters
Type |
Name |
Description |
System.UInt32 |
capacity |
|
System.Boolean |
clearToDefault |
|
VectorArray(ref VectorArray<T>, UInt32, UInt32)
Declaration
public VectorArray(ref VectorArray<T> vec, uint offset, uint count)
Parameters
Type |
Name |
Description |
VectorArray<T> |
vec |
|
System.UInt32 |
offset |
|
System.UInt32 |
count |
|
Fields
k_InvalidIdx
Declaration
public const uint k_InvalidIdx = 4294967295U
Field Value
Type |
Description |
System.UInt32 |
|
Properties
Item[UInt32]
Declaration
public T this[uint index] { get; set; }
Parameters
Type |
Name |
Description |
System.UInt32 |
index |
|
Property Value
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Type |
Description |
System.UInt32 |
|
Add(T[], UInt32)
Declaration
public uint Add(T[] objs, uint count)
Parameters
Type |
Name |
Description |
T[] |
objs |
|
System.UInt32 |
count |
|
Returns
Type |
Description |
System.UInt32 |
|
Add(ref VectorArray<T>)
Declaration
public uint Add(ref VectorArray<T> vec)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
AddUnchecked(T)
Declaration
public uint AddUnchecked(T obj)
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUnchecked(T[], UInt32)
Declaration
public uint AddUnchecked(T[] objs, uint count)
Parameters
Type |
Name |
Description |
T[] |
objs |
|
System.UInt32 |
count |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUnchecked(ref VectorArray<T>)
Declaration
public uint AddUnchecked(ref VectorArray<T> vec)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
AddUnique(T)
Declaration
public uint AddUnique(T obj)
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUnique(T[], UInt32)
Declaration
public uint AddUnique(T[] objs, uint count)
Parameters
Type |
Name |
Description |
T[] |
objs |
|
System.UInt32 |
count |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUnique(ref VectorArray<T>)
Declaration
public uint AddUnique(ref VectorArray<T> vec)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
AddUniqueUnchecked(T)
Declaration
public uint AddUniqueUnchecked(T obj)
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUniqueUnchecked(T[], UInt32)
Declaration
public uint AddUniqueUnchecked(T[] objs, uint count)
Parameters
Type |
Name |
Description |
T[] |
objs |
|
System.UInt32 |
count |
|
Returns
Type |
Description |
System.UInt32 |
|
AddUniqueUnchecked(ref VectorArray<T>)
Declaration
public uint AddUniqueUnchecked(ref VectorArray<T> vec)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
AsArray(out UInt32, out UInt32)
Declaration
public T[] AsArray(out uint offset, out uint count)
Parameters
Type |
Name |
Description |
System.UInt32 |
offset |
|
System.UInt32 |
count |
|
Returns
CapacityAvailable()
Declaration
public uint CapacityAvailable()
Returns
Type |
Description |
System.UInt32 |
|
CapacityTotal()
Declaration
public uint CapacityTotal()
Returns
Type |
Description |
System.UInt32 |
|
Contains(T)
Declaration
public bool Contains(T designator)
Parameters
Type |
Name |
Description |
T |
designator |
|
Returns
Type |
Description |
System.Boolean |
|
Contains<U>(U, VectorArray<T>.Comparator<U>)
Declaration
public bool Contains<U>(U designator, VectorArray<T>.Comparator<U> compareDelegate)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
CopyTo(T[], Int32, out UInt32)
Declaration
public void CopyTo(T[] destination, int destinationStart, out uint count)
Parameters
Type |
Name |
Description |
T[] |
destination |
|
System.Int32 |
destinationStart |
|
System.UInt32 |
count |
|
Count()
Declaration
Returns
Type |
Description |
System.UInt32 |
|
Declaration
public void ExtractTo<U>(U[] destination, int destinationStart, out uint count, VectorArray<T>.Extractor<U> extractorDelegate)
Parameters
Type |
Name |
Description |
U[] |
destination |
|
System.Int32 |
destinationStart |
|
System.UInt32 |
count |
|
VectorArray.Extractor<U> |
extractorDelegate |
|
Type Parameters
Declaration
public void ExtractTo<U>(ref VectorArray<U> destination, VectorArray<T>.Extractor<U> extractorDelegate)
Parameters
Type Parameters
FindFirst(out UInt32, ref T)
Declaration
public bool FindFirst(out uint idx, ref T designator)
Parameters
Type |
Name |
Description |
System.UInt32 |
idx |
|
T |
designator |
|
Returns
Type |
Description |
System.Boolean |
|
FindFirst<U>(out UInt32, ref U, VectorArray<T>.Comparator<U>)
Declaration
public bool FindFirst<U>(out uint idx, ref U designator, VectorArray<T>.Comparator<U> compareDelegate)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Purge(UInt32)
Declaration
public void Purge(uint count)
Parameters
Type |
Name |
Description |
System.UInt32 |
count |
|
Purge(UInt32, VectorArray<T>.Cleanup)
Declaration
public void Purge(uint count, VectorArray<T>.Cleanup cleanupDelegate)
Parameters
Reserve(UInt32)
Declaration
public void Reserve(uint capacity)
Parameters
Type |
Name |
Description |
System.UInt32 |
capacity |
|
Reset()
Declaration
Reset(UInt32)
Declaration
public void Reset(uint capacity)
Parameters
Type |
Name |
Description |
System.UInt32 |
capacity |
|
Reset(UInt32, VectorArray<T>.Cleanup)
Declaration
public void Reset(uint capacity, VectorArray<T>.Cleanup cleanupDelegate)
Parameters
Reset(VectorArray<T>.Cleanup)
Declaration
public void Reset(VectorArray<T>.Cleanup cleanupDelegate)
Parameters
Resize(UInt32)
Declaration
public void Resize(uint size)
Parameters
Type |
Name |
Description |
System.UInt32 |
size |
|
Resize(UInt32, VectorArray<T>.Cleanup)
Declaration
public void Resize(uint size, VectorArray<T>.Cleanup cleanupDelegate)
Parameters
Sort()
Declaration
Sort(IComparer<T>)
Declaration
public void Sort(IComparer<T> comparer)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IComparer<T> |
comparer |
|
Subrange(UInt32, UInt32)
Declaration
public VectorArray<T> Subrange(uint offset, uint count)
Parameters
Type |
Name |
Description |
System.UInt32 |
offset |
|
System.UInt32 |
count |
|
Returns
Swap(UInt32, UInt32)
Declaration
public void Swap(uint first, uint second)
Parameters
Type |
Name |
Description |
System.UInt32 |
first |
|
System.UInt32 |
second |
|
SwapUnchecked(UInt32, UInt32)
Declaration
public void SwapUnchecked(uint first, uint second)
Parameters
Type |
Name |
Description |
System.UInt32 |
first |
|
System.UInt32 |
second |
|
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.