Utility functions¶
Some utility functions are provided to perform conversions between data representations.
- 
SCWS.toHexString(buffer)¶
- Utility function that converts an - ArrayBuffer,- Bufferor a- Uint8Arrayto a hexadecimal string.- Arguments
- buffer – The - ArrayBuffer,- Bufferor- Uint8Arrayinput value.
 
- Returns
- The hexadecimal string. 
 
- 
SCWS.fromHexString(hex)¶
- Utility function that converts a hexadecimal string to an - ArrayBuffer.- Arguments
- hex – The hexadecimal string input. 
 
- Returns
- The - ArrayBuffervalue.