TParser.HexToBinary procedure
Writes hexadecimal data to a stream.
Declaration
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.
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.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
