BuffToHex
(System Library)
Description: | Convert a buffer of text data to a string of hexadecimal values representing the ASCII code of each character in the buffer. |
Returns: | Text |
Usage: ![]() |
Script Only. |
Function Groups: | String and Buffer |
Related to: | HexToBuff | MakeBuff |
Format: ![]() |
\System.BuffToHex(BinaryBuffer) |
Parameters: |
BinaryBuffer |
Required. The buffer that is to be converted to a hexadecimal string. |
\System.BuffToHex("ABCD");
…will return "41424344"
\System.BuffToHex(10);
…will return "3031". 10 is interpreted as the string "10", not the numeric, decimal value.
\System.BuffToHex(Concat(MakeBuff(1, 0xFF), MakeBuff(1, 0x00), MakeBuff(1, 0xAA)));
…will return "FF00AA"
MachineIDString = \System.BuffToHex(WkStaInfo(3));
…will return a hexadecimal representation of the workstation's unique identifier.