Converter Class
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
Provides functionality for converting bits and bytes to various value types and vice versa.
public class Converter
Inherited Members
Fields
| BitsPerByte | The number of bits in a byte. |
| BitsPerULong | The number of bits in a ulong. |
Methods
| BoolFromBit(byte[], int) | Converts the bit at |
| BoolFromBit(ulong[], int) | Converts the bit at |
| BoolToBit(bool, byte[], int) | Converts |
| BoolToBit(bool, ulong[], int) | Converts |
| ByteFromBits(byte[], int) | Converts the 8 bits at |
| ByteFromBits(ulong[], int) | Converts the 8 bits at |
| ByteToBits(byte, byte[], int) | Converts |
| ByteToBits(byte, ulong[], int) | Converts |
| DoubleFromBits(byte[], int) | Converts the 64 bits at |
| DoubleFromBits(ulong[], int) | Converts the 64 bits at |
| DoubleToBits(double, byte[], int) | Converts |
| DoubleToBits(double, ulong[], int) | Converts |
| FloatFromBits(byte[], int) | Converts the 32 bits at |
| FloatFromBits(ulong[], int) | Converts the 32 bits at |
| FloatToBits(float, byte[], int) | Converts |
| FloatToBits(float, ulong[], int) | Converts |
| FromDouble(double, byte[], int) | Converts a given double to bytes and writes them into the given array. |
| FromFloat(float, byte[], int) | Converts a given float to bytes and writes them into the given array. |
| FromInt(int, byte[], int) | Converts a given int to bytes and writes them into the given array. |
| FromLong(long, byte[], int) | Converts a given long to bytes and writes them into the given array. |
| FromShort(short, byte[], int) | Converts a given short to bytes and writes them into the given array. |
| FromUInt(uint, byte[], int) | Converts a given uint to bytes and writes them into the given array. |
| FromULong(ulong, byte[], int) | Converts a given ulong to bytes and writes them into the given array. |
| FromUShort(ushort, byte[], int) | Converts a given ushort to bytes and writes them into the given array. |
| 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 |
| IntFromBits(byte[], int) | Converts the 32 bits at |
| IntFromBits(ulong[], int) | Converts the 32 bits at |
| IntToBits(int, byte[], int) | Converts |
| IntToBits(int, ulong[], int) | Converts |
| LongFromBits(byte[], int) | Converts the 64 bits at |
| LongFromBits(ulong[], int) | Converts the 64 bits at |
| LongToBits(long, byte[], int) | Converts |
| LongToBits(long, ulong[], int) | Converts |
| SByteFromBits(byte[], int) | Converts the 8 bits at |
| SByteFromBits(ulong[], int) | Converts the 8 bits at |
| SByteToBits(sbyte, byte[], int) | Converts |
| SByteToBits(sbyte, ulong[], int) | Converts |
| 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 |
| ShortFromBits(byte[], int) | Converts the 16 bits at |
| ShortFromBits(ulong[], int) | Converts the 16 bits at |
| ShortToBits(short, byte[], int) | Converts |
| ShortToBits(short, ulong[], int) | Converts |
| ToDouble(byte[], int) | Converts the 8 bytes in the array at |
| ToFloat(byte[], int) | Converts the 4 bytes in the array at |
| ToInt(byte[], int) | Converts the 4 bytes in the array at |
| ToLong(byte[], int) | Converts the 8 bytes in the array at |
| ToShort(byte[], int) | Converts the 2 bytes in the array at |
| ToUInt(byte[], int) | Converts the 4 bytes in the array at |
| ToULong(byte[], int) | Converts the 8 bytes in the array at |
| ToUShort(byte[], int) | Converts the 2 bytes in the array at |
| UIntFromBits(byte[], int) | Converts the 32 bits at |
| UIntFromBits(ulong[], int) | Converts the 32 bits at |
| UIntToBits(uint, byte[], int) | Converts |
| UIntToBits(uint, ulong[], int) | Converts |
| ULongFromBits(byte[], int) | Converts the 64 bits at |
| ULongFromBits(ulong[], int) | Converts the 64 bits at |
| ULongToBits(ulong, byte[], int) | Converts |
| ULongToBits(ulong, ulong[], int) | Converts |
| UShortFromBits(byte[], int) | Converts the 16 bits at |
| UShortFromBits(ulong[], int) | Converts the 16 bits at |
| UShortToBits(ushort, byte[], int) | Converts |
| UShortToBits(ushort, ulong[], int) | Converts |
| ZigZagDecode(int) | Zig zag decodes |
| ZigZagDecode(long) | Zig zag decodes |
| ZigZagEncode(int) | Zig zag encodes |
| ZigZagEncode(long) | Zig zag encodes |