Class PacketBitConverter
Inheritance
System.Object
PacketBitConverter
Assembly: MySql.Data.dll
Version: 9.2.0
Syntax
public static class PacketBitConverter
Methods
GetBytes(Double)
Declaration
public static byte[] GetBytes(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.Byte[] |
|
GetBytes(Int32)
Declaration
public static byte[] GetBytes(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.Byte[] |
|
GetBytes(Int64)
Declaration
public static byte[] GetBytes(long value)
Parameters
Type |
Name |
Description |
System.Int64 |
value |
|
Returns
Type |
Description |
System.Byte[] |
|
GetBytes(Single)
Declaration
public static byte[] GetBytes(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Returns
Type |
Description |
System.Byte[] |
|
ToDouble(Byte[], Int32)
Declaration
public static double ToDouble(byte[] byteArray, int startIndex)
Parameters
Type |
Name |
Description |
System.Byte[] |
byteArray |
|
System.Int32 |
startIndex |
|
Returns
Type |
Description |
System.Double |
|
ToInt16(Byte[], Int32)
Declaration
public static short ToInt16(byte[] byteArray, int startIndex)
Parameters
Type |
Name |
Description |
System.Byte[] |
byteArray |
|
System.Int32 |
startIndex |
|
Returns
Type |
Description |
System.Int16 |
|
ToInt32(Byte[], Int32)
Declaration
public static int ToInt32(byte[] byteArray, int startIndex)
Parameters
Type |
Name |
Description |
System.Byte[] |
byteArray |
|
System.Int32 |
startIndex |
|
Returns
Type |
Description |
System.Int32 |
|
ToInt64(Byte[], Int32)
Declaration
public static long ToInt64(byte[] byteArray, int startIndex)
Parameters
Type |
Name |
Description |
System.Byte[] |
byteArray |
|
System.Int32 |
startIndex |
|
Returns
Type |
Description |
System.Int64 |
|
ToSingle(Byte[], Int32)
Declaration
public static float ToSingle(byte[] byteArray, int startIndex)
Parameters
Type |
Name |
Description |
System.Byte[] |
byteArray |
|
System.Int32 |
startIndex |
|
Returns
Type |
Description |
System.Single |
|
ToUInt16(Byte[], Int32)
Declaration
public static ushort ToUInt16(byte[] byteArray, int startIndex)
Parameters
Type |
Name |
Description |
System.Byte[] |
byteArray |
|
System.Int32 |
startIndex |
|
Returns
Type |
Description |
System.UInt16 |
|
ToUInt32(Byte[], Int32)
Declaration
public static uint ToUInt32(byte[] byteArray, int startIndex)
Parameters
Type |
Name |
Description |
System.Byte[] |
byteArray |
|
System.Int32 |
startIndex |
|
Returns
Type |
Description |
System.UInt32 |
|
ToUInt64(Byte[], Int32)
Declaration
public static ulong ToUInt64(byte[] byteArray, int startIndex)
Parameters
Type |
Name |
Description |
System.Byte[] |
byteArray |
|
System.Int32 |
startIndex |
|
Returns
Type |
Description |
System.UInt64 |
|