Struct FixedArray<T>
A fixed length array wrapper
Namespace: PTIRelianceLib
Assembly: PTIRelianceLib.dll
Syntax
public struct FixedArray<T>
Type Parameters
Name | Description |
---|---|
T | Data type to hold |
Constructors
| Improve this Doc View SourceFixedArray(Int32)
Create a new fixed length array of this type
Declaration
public FixedArray(int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size |
Properties
| Improve this Doc View SourceContent
Raw raw contents of this array as a comma-separate string using ToString on the objects in this array.
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
System.String |
Count
Returns the count of elements in the fixed array.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Size
Returns the fixed length of this array. This is the max size.
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceGetData()
Returns a readonly array containg all data
Declaration
public ImmutableArray<T> GetData()
Returns
Type | Description |
---|---|
ImmutableArray<T> |
SetData(T[])
Puts data into this fixed length array starting from the current tail of the fixed array. If the fixed array size limit has been reached, no more data will be added and this method will return.
Declaration
public void SetData(params T[] data)
Parameters
Type | Name | Description |
---|---|---|
T[] | data |