C# Class Backend.Helper.Converter

ファイルを表示 Open project: HerrRiebmann/KDS2Bluetooth

Public Methods

Method Description
ByteToHex ( byte comByte ) : string

method to convert a byte array into a hex string

EnumToArray ( Enum enumeration ) : System.Enum[]
HexToByte ( string msg ) : byte[]

method to convert hex string into a byte array

Method Details

ByteToHex() public static method

method to convert a byte array into a hex string
public static ByteToHex ( byte comByte ) : string
comByte byte byte array to convert
return string

EnumToArray() public static method

public static EnumToArray ( Enum enumeration ) : System.Enum[]
enumeration System.Enum
return System.Enum[]

HexToByte() public static method

method to convert hex string into a byte array
public static HexToByte ( string msg ) : byte[]
msg string string to convert
return byte[]