Auki::Ark::BitwiseNativeArrayView
Inherits from IEnumerable, IEnumerable< bool >, IReadOnlyList< bool >
Public Classes
Name | |
---|---|
struct | Enumerator Enumerator for a BitwiseNativeArrayView. |
Public Functions
Name | |
---|---|
unsafe | BitwiseNativeArrayView(NativeArray< uint > buffer, int startIndexInBits, int lengthInBits) Constructor for BitwiseNativeArrayView - a wrapper for a native array that does not copy the array. |
bool[] | ToBoolArray() Converts BitwiseNativeArrayView to an array of booleans. |
BitwiseNativeArrayView.Enumerator | GetEnumerator() Returns enumerator for BitwiseNativeArrayView. |
IEnumerator< bool > IEnumerable< bool >. | GetEnumerator() |
IEnumerator IEnumerable. | GetEnumerator() |
Public Properties
Name | |
---|---|
int | Count Number of elements in array (identical to Length). |
int | Length Number of elements in array (identical to Count). |
unsafe bool | this[int index] Gets element at specific index. |
unsafe bool | IsCreated 'True' if the array was created, 'false' if it was not. |
Detailed Description
struct Auki::Ark::BitwiseNativeArrayView;
NativeArray View interface constrained to read-only operation, which indexes single bits in the array
Public Functions Documentation
function BitwiseNativeArrayView
unsafe BitwiseNativeArrayView(
NativeArray< uint > buffer,
int startIndexInBits,
int lengthInBits
)
Constructor for BitwiseNativeArrayView - a wrapper for a native array that does not copy the array.
Parameters:
- buffer NativeArray that will be stored
- startIndexInBits Starting index
- lengthInBits Length of array
function ToBoolArray
bool[] ToBoolArray()
Converts BitwiseNativeArrayView to an array of booleans.
Return: Boolean array
function GetEnumerator
BitwiseNativeArrayView.Enumerator GetEnumerator()
Returns enumerator for BitwiseNativeArrayView.
Return: Enumerator
function GetEnumerator
IEnumerator< bool > IEnumerable< bool >. GetEnumerator()
function GetEnumerator
IEnumerator IEnumerable. GetEnumerator()
Public Property Documentation
property Count
int Count;
Number of elements in array (identical to Length).
property Length
int Length;
Number of elements in array (identical to Count).
property this[int index]
unsafe bool this[int index];
Gets element at specific index.
Parameters:
- index The zero-based index of the element to get
property IsCreated
unsafe bool IsCreated;
'True' if the array was created, 'false' if it was not.