This repository has been archived by the owner on Feb 26, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Exomia.Native.Collections
Daniel Baetz edited this page Jun 21, 2019
·
13 revisions
a faster list for unmanaged types.
public class Exomia.Native.Collections.List2<T>
.ctor
List2`1(Int32
capacity)
Initializes a new instance of the <see cref="List2<T>"/> class.
-
capacity
- The capacity.
.ctor
List2`1(IEnumerable
collection)
Initializes a new instance of the <see cref="List2<T>"/> class.
-
collection
- The collection.
Boolean
Contains(T&
item)
Query if this object contains the given item.
-
item
- The in T to test for containment.
T&
Get(Int32
index)
Gets a reference t using the given index.
-
index
- Zero-based index of the.
T&
Get(UInt32
index)
Gets a reference t using the given index.
-
index
- Zero-based index of the.
List2
GetRange(Int32
index, Int32
count)
Finds the range of the given arguments.
-
index
- Zero-based index of the. -
count
- Returns the current number of items in this list.
Int32
IndexOf(T&
item, Int32
startIndex, Int32
count)
Searches for the first match.
-
item
- The in T to test for containment. -
startIndex
- The start index. -
count
- Returns the current number of items in this list.
void
Insert(Int32
index, T&
item)
Inserts.
-
index
- Zero-based index of the. -
item
- The in T to test for containment.
Boolean
Remove(T&
item)
Removes the given item.
-
item
- The in T to test for containment.
void
RemoveAt(Int32
index)
Removes at described by index.
-
index
- Zero-based index of the.
void
RemoveRange(Int32
index, Int32
count)
Removes the range.
-
index
- Zero-based index of the. -
count
- Returns the current number of items in this list.
T[]
ToArray(Int32
index)
Convert this object into an array representation.
-
index
- Zero-based index of the.
T[]
ToArray(Int32
index, Int32
count)
Convert this object into an array representation.
-
index
- Zero-based index of the. -
count
- Returns the current number of items in this list.