Class FastBitConverter
Inheritance
System.Object
FastBitConverter
Assembly: LiteNetLib.dll
Syntax
public static class FastBitConverter
Methods
GetBytes(Byte[], Int32, Double)
Declaration
public static void GetBytes(byte[] bytes, int startIndex, double value)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
startIndex |
|
System.Double |
value |
|
GetBytes(Byte[], Int32, Int16)
Declaration
public static void GetBytes(byte[] bytes, int startIndex, short value)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
startIndex |
|
System.Int16 |
value |
|
GetBytes(Byte[], Int32, Int32)
Declaration
public static void GetBytes(byte[] bytes, int startIndex, int value)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
startIndex |
|
System.Int32 |
value |
|
GetBytes(Byte[], Int32, Int64)
Declaration
public static void GetBytes(byte[] bytes, int startIndex, long value)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
startIndex |
|
System.Int64 |
value |
|
GetBytes(Byte[], Int32, Single)
Declaration
public static void GetBytes(byte[] bytes, int startIndex, float value)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
startIndex |
|
System.Single |
value |
|
GetBytes(Byte[], Int32, UInt16)
Declaration
public static void GetBytes(byte[] bytes, int startIndex, ushort value)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
startIndex |
|
System.UInt16 |
value |
|
GetBytes(Byte[], Int32, UInt32)
Declaration
public static void GetBytes(byte[] bytes, int startIndex, uint value)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
startIndex |
|
System.UInt32 |
value |
|
GetBytes(Byte[], Int32, UInt64)
Declaration
public static void GetBytes(byte[] bytes, int startIndex, ulong value)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
startIndex |
|
System.UInt64 |
value |
|
WriteLittleEndian(Byte[], Int32, Int16)
Declaration
public static void WriteLittleEndian(byte[] buffer, int offset, short data)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
|
System.Int32 |
offset |
|
System.Int16 |
data |
|