Data Transformation Engine Functions and Expressions Reference Guide

Chapter 3 - Function Reference STREAMTOHEXTEXT
Functions and Expressions Reference Guide
192
STREAMTOHEXTEXT
The STREAMTOHEXTEXT function returns a character text string represented by
hex pairs whose value is the evaluation of an input binary text stream.
The
STREAMTOHEXTEXT function is the reverse of the HEXTEXTTOSTREAM function.
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”
Syntax
STREAMTOHEXTEXT (single-byte-stream-item)
Meaning
STREAMTOHEXTEXT (single-byte-stream-item)
Returns
This function returns a series_of_hex_pairs.
Returns a string of hex pairs whose value is the evaluation of input binary text
in series_of_hex_pairs.
Examples
STREAMTOHEXTEXT (0x41424344)
Returns the evaluated value of the input (ASCII) binary text stream
0x41424344 as the output (ASCII) binary text stream 0x3431343234333434