TParser.HexToBinary
Writes hexadecimal data to a stream.
Declaration
Source position: classesh.inc line 1819
public
procedure HexToBinary(Stream: TStream);
Description
HexToBinary reads a sequence of hexadecimal characters from the input stream and converts them to a sequence of bytes which is written to Stream. Each byte is represented by two contiguous hexadecimal characters.
Whitespace is allowed between hexadecimal characters if it doesn't appear between two characters that form the same byte.
HexToBinary stops when the first non-hexadecimal and non-whitespace character is found, or the end of the input stream is reached.
Remark
This method begins reading after the current token: that is, current token, even if it's a valid hexadecimal value, isn't included.
!!!
Errors
If a single hexadecimal character is found, an EParserError exception is raised.