Provide automata converting from hex encodings.
More...
Namespaces |
namespace | bdlde |
Detailed Description
- Outline
-
-
- Purpose:
- Provide automata converting from hex encodings.
-
- Classes:
-
- See also:
- Component bdlde_hexencoder
-
- Description:
- This component provides a class,
bdlde::HexDecoder
, for decoding hexadecimal representation into plain text.
bdlde::HexEncoder
and bdlde::HexDecoder
provide a pair of template functions (each parameterized separately on both input and output iterators) that can be used respectively to encode and to decode byte sequences of arbitrary length into and from the printable Hex representation.
- Each instance of either the encoder or decoder retains the state of the conversion from one supplied input to the next, enabling the processing of segmented input -- i.e., processing resumes where it left off with the next invocation on new input. Instance methods are provided for both the encoder and decoder to (1) assert the end of input, (2) determine whether the input so far is currently acceptable, and (3) indicate whether a non-recoverable error has occurred.