Utility functions¶
Hexadecimal conversions¶
Some utility functions are provided to perform conversions between data representations.
- static SCWS.toHexString(buffer)¶
Utility function that converts an
ArrayBuffer
or aUint8Array
to a hexadecimal string.- Arguments:
buffer – The
ArrayBuffer
orUint8Array
input value.
- Returns:
The hexadecimal string.
- static SCWS.fromHexString(hex)¶
Utility function that converts a hexadecimal string to an
ArrayBuffer
.- Arguments:
hex – The hexadecimal string input.
- Returns:
The
ArrayBuffer
value.