C# Класс HomeAutomation.Util.HexConverter

Converts between hex strings and byte arrays.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

BytesFromSpacedString() публичный статический Метод

Removes all spaces from hex string, and return the byte[] representation.
public static BytesFromSpacedString ( this hexString ) : byte[]
hexString this
Результат byte[]

BytesFromString() публичный статический Метод

Parses the hex string and returns it's byte representation.
public static BytesFromString ( this hexString ) : byte[]
hexString this
Результат byte[]

ToHexString() публичный статический Метод

Converts the byte array to a simple non-spaced hex string.
public static ToHexString ( this bytes ) : string
bytes this
Результат string

ToHexString() публичный статический Метод

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
Результат string

ToSpacedHexString() публичный статический Метод

Converts the byte array to a spaced hex string.
public static ToSpacedHexString ( this bytes ) : string
bytes this
Результат string

ToSpacedHexString() публичный статический Метод

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
Результат string