Helper
class Helper
Static Helper class. Contains generic helper functions
-
Private initialiser
Declaration
Swift
private init() -
Converts entered data, e.g. 0x12, 0xAF, into a displayable hexadecimal string (separated by spaces), e.g. “12 AF”
Declaration
Swift
static func dataToHexString(data: Data) -> StringParameters
dataData to convert
Return Value
String; string containing the hexadecimal display values of the entered data
-
Converts a entered hexadecimal string, e.g. “12 AF ”…, into Data (no checking is performed)
Declaration
Swift
static func hexStringToData(hexString: String) -> DataParameters
hexStringString holding hexadecimal display values (with or without spaces)
Return Value
Data holding the hexadecimal values
Helper Class Reference