[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Writes hexadecimal data to a stream.
Source position: classesh.inc line 1550
public procedure TParser.HexToBinary( |
Stream: TStream |
); |
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. |
If a single hexadecimal character is found, an EParserError exception is raised.