THPDFASCIIHexDecodeInfo Record
Reports byte counts, EOD terminator detection, and odd-nibble padding collected while decoding an ASCIIHex stream
Declaration
THPDFASCIIHexDecodeInfo= record
InputBytes: Int64;
OutputBytes: Int64;
TerminatorFound: boolean;
OddNibblePadded: boolean;
end;
Unit
HPDFTypes
Fields
| Field | Purpose |
|---|---|
InputBytes | Count of hex-encoded input bytes consumed by the decoder |
OutputBytes | Count of decoded bytes written to the output stream |
TerminatorFound | True when the > EOD character closed the data; with RequireTerminator the decoder raises an error when it is missing |
OddNibblePadded | True when the data ended mid-byte and the final nibble was zero-padded under ahonPadLowZero; the ahonReject policy raises instead |
Usage notes
- Passed as the
Infoout parameter of HPDFASCIIHexDecodeStream - The decoder zeroes the record before decoding, so all counters start from a known state
OddNibblePaddedonly becomes True when the odd-nibble policy allowed padding and the payload had an odd digit count