STREAMTOHEXTEXT

Use STREAMTOHEXTEXT to assign a character text value to a binary text stream item.

The STREAMTOHEXTEXT function returns a character text string represented by hex pairs whose value is the evaluation of an input binary text stream.

This function is the reverse of the HEXTEXTTOSTREAM function.

Syntax:
STREAMTOHEXTEXT (single-byte-stream-item)
Meaning:
STREAMTOHEXTEXT (single-byte-stream-item)
Returns:
A series of hex pairs

STREAMTOHEXTEXT returns a string of hex pairs whose value is the evaluation of input binary text in series_of_hex_pairs.

Input formats

The following table shows an example of input in its ASCII code representation (binary text stream) as viewed through the hex editor, and in its character text representation as viewed through the character editor. Each four-character grouping of binary text in the hex view represents one character in the character view.

Input (0x41424344) Editor View Value
ASCII code representation (binary text stream) Hex 0x41424344
  Character "ABCD"

Examples

  • STREAMTOHEXTEXT (0x41424344)

    Returns the evaluated value of the input (ASCII) binary text stream 0x41424344 as the output (ASCII) binary text stream 0x3431343234333434 as viewed in the hex editor. (The character view of the input is "ABCD". The character view of the output is "41424344".)

  • STREAMTOHEXTEXT (0x0D0A00)

    Returns the evaluated value of the input binary text stream 0x0D0A00 as the output 0x304430413030 as viewed in the hex editor. (The character view of the input is "<CR><LF><NULL>". The character view of the output is "0D0A00".)

Related functions

  • HEXTEXTTOSTREAM
  • SYMBOL

Feedback