Class BitArrayUtilities
Bit array utility class.
Namespace: UnityEngine.Rendering
Syntax
public static class BitArrayUtilities : object
Methods
Get128(UInt32, UInt64, UInt64)
Get a bit at a specific index.
Declaration
public static bool Get128(uint index, ulong data1, ulong data2)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt64 | data1 | Bit array data 1. |
UInt64 | data2 | Bit array data 2. |
Returns
Type | Description |
---|---|
Boolean | The value of the bit at the specific index. |
Get16(UInt32, UInt16)
Get a bit at a specific index.
Declaration
public static bool Get16(uint index, ushort data)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt16 | data | Bit array data. |
Returns
Type | Description |
---|---|
Boolean | The value of the bit at the specific index. |
Get256(UInt32, UInt64, UInt64, UInt64, UInt64)
Get a bit at a specific index.
Declaration
public static bool Get256(uint index, ulong data1, ulong data2, ulong data3, ulong data4)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt64 | data1 | Bit array data 1. |
UInt64 | data2 | Bit array data 2. |
UInt64 | data3 | Bit array data 3. |
UInt64 | data4 | Bit array data 4. |
Returns
Type | Description |
---|---|
Boolean | The value of the bit at the specific index. |
Get32(UInt32, UInt32)
Get a bit at a specific index.
Declaration
public static bool Get32(uint index, uint data)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt32 | data | Bit array data. |
Returns
Type | Description |
---|---|
Boolean | The value of the bit at the specific index. |
Get64(UInt32, UInt64)
Get a bit at a specific index.
Declaration
public static bool Get64(uint index, ulong data)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt64 | data | Bit array data. |
Returns
Type | Description |
---|---|
Boolean | The value of the bit at the specific index. |
Get8(UInt32, Byte)
Get a bit at a specific index.
Declaration
public static bool Get8(uint index, byte data)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
Byte | data | Bit array data. |
Returns
Type | Description |
---|---|
Boolean | The value of the bit at the specific index. |
Set128(UInt32, ref UInt64, ref UInt64, Boolean)
Set a bit at a specific index.
Declaration
public static void Set128(uint index, ref ulong data1, ref ulong data2, bool value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt64 | data1 | Bit array data 1. |
UInt64 | data2 | Bit array data 2. |
Boolean | value | Value to set the bit to. |
Set16(UInt32, ref UInt16, Boolean)
Set a bit at a specific index.
Declaration
public static void Set16(uint index, ref ushort data, bool value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt16 | data | Bit array data. |
Boolean | value | Value to set the bit to. |
Set256(UInt32, ref UInt64, ref UInt64, ref UInt64, ref UInt64, Boolean)
Set a bit at a specific index.
Declaration
public static void Set256(uint index, ref ulong data1, ref ulong data2, ref ulong data3, ref ulong data4, bool value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt64 | data1 | Bit array data 1. |
UInt64 | data2 | Bit array data 2. |
UInt64 | data3 | Bit array data 3. |
UInt64 | data4 | Bit array data 4. |
Boolean | value | Value to set the bit to. |
Set32(UInt32, ref UInt32, Boolean)
Set a bit at a specific index.
Declaration
public static void Set32(uint index, ref uint data, bool value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt32 | data | Bit array data. |
Boolean | value | Value to set the bit to. |
Set64(UInt32, ref UInt64, Boolean)
Set a bit at a specific index.
Declaration
public static void Set64(uint index, ref ulong data, bool value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
UInt64 | data | Bit array data. |
Boolean | value | Value to set the bit to. |
Set8(UInt32, ref Byte, Boolean)
Set a bit at a specific index.
Declaration
public static void Set8(uint index, ref byte data, bool value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Bit index. |
Byte | data | Bit array data. |
Boolean | value | Value to set the bit to. |