Class AssetList<T>
Implements
System.Collections.IList<T>
IReadOnlyList<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: AssetRipper.Assets.Generics
Assembly: AssetRipper.Assets.dll
Syntax
public sealed class AssetList<T> : AccessListBase<T> where T : new()
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceAssetList()
Declaration
public AssetList()
AssetList(Int32)
Declaration
public AssetList(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity |
Properties
| Improve this Doc View SourceCapacity
The capacity of the list
Declaration
public override int Capacity { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.Capacity
|
Improve this Doc
View Source
Count
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.Count
|
Improve this Doc
View Source
Item[Int32]
Declaration
public override T this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
T |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.Item[System.Int32]
Methods
| Improve this Doc View SourceAdd(T)
Declaration
public override void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.Add(T)
|
Improve this Doc
View Source
AddNew()
Add a new element to the list
Declaration
public override T AddNew()
Returns
Type | Description |
---|---|
T |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.AddNew()
|
Improve this Doc
View Source
AddRange(IEnumerable<T>)
Declaration
public void AddRange(IEnumerable<T> enumerable)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | enumerable |
Clear()
Declaration
public override void Clear()
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.Clear()
|
Improve this Doc
View Source
Contains(T)
Declaration
public override bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.Contains(T)
|
Improve this Doc
View Source
CopyTo(T[], Int32)
Declaration
public override void CopyTo(T[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
T[] | array | |
System.Int32 | arrayIndex |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.CopyTo(T[], System.Int32)
|
Improve this Doc
View Source
CopyTo(Span<T>)
Declaration
public void CopyTo(Span<T> destination)
Parameters
Type | Name | Description |
---|---|---|
Span<T> | destination |
EnsureCapacity(Int32)
Ensures that the capacity of this list is at least the specified capacity
.
If the current capacity of the list is less than specified capacity
,
the capacity is increased by continuously twice current capacity until it is at least the specified capacity
.
Declaration
public override int EnsureCapacity(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity | The minimum capacity to ensure. |
Returns
Type | Description |
---|---|
System.Int32 | The new capacity of this list. |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.EnsureCapacity(System.Int32)
|
Improve this Doc
View Source
GetSpan()
Get a span for this list.
Declaration
public Span<T> GetSpan()
Returns
Type | Description |
---|---|
Span<T> | A span for the underlying array, with length equal to Count. |
Remarks
T
must be blittable.
IndexOf(T)
Declaration
public override int IndexOf(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.IndexOf(T)
|
Improve this Doc
View Source
Insert(Int32, T)
Declaration
public override void Insert(int index, T item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
T | item |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.Insert(System.Int32, T)
|
Improve this Doc
View Source
Remove(T)
Declaration
public override bool Remove(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.Remove(T)
|
Improve this Doc
View Source
RemoveAt(Int32)
Declaration
public override void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Overrides
AssetRipper.Assets.Generics.AccessListBase<T>.RemoveAt(System.Int32)
Implements
System.Collections.IList<>
IReadOnlyList<>