Converter.SetBits Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
Overloads
| SetBits(byte, int, byte[], int) | Takes |
| SetBits(ushort, int, byte[], int) | Takes |
| SetBits(uint, int, byte[], int) | Takes |
| SetBits(ulong, int, byte[], int) | Takes |
| SetBits(ulong, int, ulong[], int) | Takes |
SetBits(byte, int, byte[], int)
Takes amount bits from bitfield and writes them into array, starting at startBit.
public static void SetBits(byte bitfield, int amount, byte[] array, int startBit)
Parameters
| byte | bitfield |
The bitfield from which to write the bits into the array. |
| int | amount |
The number of bits to write. |
| byte[] | array |
The array to write the bits into. |
| int | startBit |
The bit position in the array at which to start writing. |
SetBits(ushort, int, byte[], int)
Takes amount bits from bitfield and writes them into array, starting at startBit.
public static void SetBits(ushort bitfield, int amount, byte[] array, int startBit)
Parameters
| ushort | bitfield |
The bitfield from which to write the bits into the array. |
| int | amount |
The number of bits to write. |
| byte[] | array |
The array to write the bits into. |
| int | startBit |
The bit position in the array at which to start writing. |
SetBits(uint, int, byte[], int)
Takes amount bits from bitfield and writes them into array, starting at startBit.
public static void SetBits(uint bitfield, int amount, byte[] array, int startBit)
Parameters
| uint | bitfield |
The bitfield from which to write the bits into the array. |
| int | amount |
The number of bits to write. |
| byte[] | array |
The array to write the bits into. |
| int | startBit |
The bit position in the array at which to start writing. |
SetBits(ulong, int, byte[], int)
Takes amount bits from bitfield and writes them into array, starting at startBit.
public static void SetBits(ulong bitfield, int amount, byte[] array, int startBit)
Parameters
| ulong | bitfield |
The bitfield from which to write the bits into the array. |
| int | amount |
The number of bits to write. |
| byte[] | array |
The array to write the bits into. |
| int | startBit |
The bit position in the array at which to start writing. |
SetBits(ulong, int, ulong[], int)
Takes amount bits from bitfield and writes them into array, starting at startBit.
public static void SetBits(ulong bitfield, int amount, ulong[] array, int startBit)
Parameters
| ulong | bitfield |
The bitfield from which to write the bits into the array. |
| int | amount |
The number of bits to write. |
| ulong[] | array |
The array to write the bits into. |
| int | startBit |
The bit position in the array at which to start writing. |