Message.GetBits Method
Namespace: Riptide
Assembly: RiptideNetworking.dll
Overloads
GetBits(int, out byte) | Retrieves the next |
GetBits(int, out ushort) | Retrieves the next |
GetBits(int, out uint) | Retrieves the next |
GetBits(int, out ulong) | Retrieves the next |
GetBits(int, out byte)
Retrieves the next amount
bits (up to 8) from the message.
public Message GetBits(int amount, out byte bitfield)
Parameters
int | amount |
The number of bits to retrieve. |
byte | bitfield |
The bits that were retrieved. |
Returns
Message | The messages that the bits were retrieved from. |
GetBits(int, out ushort)
Retrieves the next amount
bits (up to 16) from the message.
public Message GetBits(int amount, out ushort bitfield)
Parameters
int | amount |
The number of bits to retrieve. |
ushort | bitfield |
The bits that were retrieved. |
Returns
Message | The messages that the bits were retrieved from. |
GetBits(int, out uint)
Retrieves the next amount
bits (up to 32) from the message.
public Message GetBits(int amount, out uint bitfield)
Parameters
int | amount |
The number of bits to retrieve. |
uint | bitfield |
The bits that were retrieved. |
Returns
Message | The messages that the bits were retrieved from. |
GetBits(int, out ulong)
Retrieves the next amount
bits (up to 64) from the message.
public Message GetBits(int amount, out ulong bitfield)
Parameters
int | amount |
The number of bits to retrieve. |
ulong | bitfield |
The bits that were retrieved. |
Returns
Message | The messages that the bits were retrieved from. |