Converter.GetBits Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
Overloads
GetBits(int, byte[], int, out byte) | Starting at |
GetBits(int, byte[], int, out ushort) | Starting at |
GetBits(int, byte[], int, out uint) | Starting at |
GetBits(int, byte[], int, out ulong) | Starting at |
GetBits(int, ulong[], int, out byte) | Starting at |
GetBits(int, ulong[], int, out ushort) | Starting at |
GetBits(int, ulong[], int, out uint) | Starting at |
GetBits(int, ulong[], int, out ulong) | Starting at |
GetBits(int, byte[], int, out byte)
Starting at startBit
, reads amount
bits from array
into bitfield
.
public static void GetBits(int amount, byte[] array, int startBit, out byte bitfield)
Parameters
int | amount |
The number of bits to read. |
byte[] | array |
The array to read the bits from. |
int | startBit |
The bit position in the array at which to start reading. |
byte | bitfield |
The bitfield into which to write the bits from the array. |
GetBits(int, byte[], int, out ushort)
Starting at startBit
, reads amount
bits from array
into bitfield
.
public static void GetBits(int amount, byte[] array, int startBit, out ushort bitfield)
Parameters
int | amount |
The number of bits to read. |
byte[] | array |
The array to read the bits from. |
int | startBit |
The bit position in the array at which to start reading. |
ushort | bitfield |
The bitfield into which to write the bits from the array. |
GetBits(int, byte[], int, out uint)
Starting at startBit
, reads amount
bits from array
into bitfield
.
public static void GetBits(int amount, byte[] array, int startBit, out uint bitfield)
Parameters
int | amount |
The number of bits to read. |
byte[] | array |
The array to read the bits from. |
int | startBit |
The bit position in the array at which to start reading. |
uint | bitfield |
The bitfield into which to write the bits from the array. |
GetBits(int, byte[], int, out ulong)
Starting at startBit
, reads amount
bits from array
into bitfield
.
public static void GetBits(int amount, byte[] array, int startBit, out ulong bitfield)
Parameters
int | amount |
The number of bits to read. |
byte[] | array |
The array to read the bits from. |
int | startBit |
The bit position in the array at which to start reading. |
ulong | bitfield |
The bitfield into which to write the bits from the array. |
GetBits(int, ulong[], int, out byte)
Starting at startBit
, reads amount
bits from array
into bitfield
.
public static void GetBits(int amount, ulong[] array, int startBit, out byte bitfield)
Parameters
int | amount |
The number of bits to read. |
ulong[] | array |
The array to read the bits from. |
int | startBit |
The bit position in the array at which to start reading. |
byte | bitfield |
The bitfield into which to write the bits from the array. |
GetBits(int, ulong[], int, out ushort)
Starting at startBit
, reads amount
bits from array
into bitfield
.
public static void GetBits(int amount, ulong[] array, int startBit, out ushort bitfield)
Parameters
int | amount |
The number of bits to read. |
ulong[] | array |
The array to read the bits from. |
int | startBit |
The bit position in the array at which to start reading. |
ushort | bitfield |
The bitfield into which to write the bits from the array. |
GetBits(int, ulong[], int, out uint)
Starting at startBit
, reads amount
bits from array
into bitfield
.
public static void GetBits(int amount, ulong[] array, int startBit, out uint bitfield)
Parameters
int | amount |
The number of bits to read. |
ulong[] | array |
The array to read the bits from. |
int | startBit |
The bit position in the array at which to start reading. |
uint | bitfield |
The bitfield into which to write the bits from the array. |
GetBits(int, ulong[], int, out ulong)
Starting at startBit
, reads amount
bits from array
into bitfield
.
public static void GetBits(int amount, ulong[] array, int startBit, out ulong bitfield)
Parameters
int | amount |
The number of bits to read. |
ulong[] | array |
The array to read the bits from. |
int | startBit |
The bit position in the array at which to start reading. |
ulong | bitfield |
The bitfield into which to write the bits from the array. |