Converts a char string of human readable hexes to a byte array.
More...
#include <to_byte_array.hpp>
Converts a char string of human readable hexes to a byte array.
Parses a string of hexes into a character byte array.
- See also
- Converter
Definition at line 269 of file to_byte_array.hpp.
◆ ~Converter()
◆ operator()()
std::vector<char> ecl::Converter< std::vector< char >, char * >::operator() |
( |
const char * |
input | ) |
|
|
inline |
Converts a string of human readable hexes into a byte array.
The string should contain bytes written as a '0x' followed by two hex digits. e.g.
This throws an exception and/or configures the error() function if an unexpected char is discovered.
- Parameters
-
input | : the character string to be converted. |
- Returns
- vector<char> : the byte array.
- Exceptions
-
Definition at line 291 of file to_byte_array.hpp.
◆ byte
◆ state
◆ waiting_first_digit
const unsigned int ecl::Converter< std::vector< char >, char * >::waiting_first_digit = 2 |
|
staticprivate |
◆ waiting_second_digit
const unsigned int ecl::Converter< std::vector< char >, char * >::waiting_second_digit = 3 |
|
staticprivate |
◆ waiting_x
const unsigned int ecl::Converter< std::vector< char >, char * >::waiting_x = 1 |
|
staticprivate |
◆ waiting_zero
const unsigned int ecl::Converter< std::vector< char >, char * >::waiting_zero = 0 |
|
staticprivate |
The documentation for this class was generated from the following file: