C# Class HomeAutomation.Util.HexConverter

Converts between hex strings and byte arrays.
Afficher le fichier Open project: moszinet/HomeAutomation

Méthodes publiques

Méthode Description
BytesFromSpacedString ( this hexString ) : byte[]

Removes all spaces from hex string, and return the byte[] representation.

BytesFromString ( this hexString ) : byte[]

Parses the hex string and returns it's byte representation.

ToHexString ( this bytes ) : string

Converts the byte array to a simple non-spaced hex string.

ToHexString ( this bytes, int offset, int length ) : string

Converts the byte array to a simple non-spaced hex string.

ToSpacedHexString ( this bytes ) : string

Converts the byte array to a spaced hex string.

ToSpacedHexString ( this bytes, int offset, int length ) : string

Converts the byte array to a spaced hex string.

Method Details

BytesFromSpacedString() public static méthode

Removes all spaces from hex string, and return the byte[] representation.
public static BytesFromSpacedString ( this hexString ) : byte[]
hexString this
Résultat byte[]

BytesFromString() public static méthode

Parses the hex string and returns it's byte representation.
public static BytesFromString ( this hexString ) : byte[]
hexString this
Résultat byte[]

ToHexString() public static méthode

Converts the byte array to a simple non-spaced hex string.
public static ToHexString ( this bytes ) : string
bytes this
Résultat string

ToHexString() public static méthode

Converts the byte array to a simple non-spaced hex string.
public static ToHexString ( this bytes, int offset, int length ) : string
bytes this
offset int
length int
Résultat string

ToSpacedHexString() public static méthode

Converts the byte array to a spaced hex string.
public static ToSpacedHexString ( this bytes ) : string
bytes this
Résultat string

ToSpacedHexString() public static méthode

Converts the byte array to a spaced hex string.
public static ToSpacedHexString ( this bytes, int offset, int length ) : string
bytes this
offset int
length int
Résultat string