3#include <AH/STL/utility>
4#include <AH/STL/vector>
5#include <Settings/NamespaceSettings.hpp>
24template <
class CharPuller>
35 bool pull(uint8_t &output) {
37 while (
puller.pull(input)) {
39 if (isxdigit(input)) {
50 else if (!isxdigit(input) &&
char1) {
62 return hex <
'a' ? hex -
'0' : hex -
'a' + 10;
#define BEGIN_CS_NAMESPACE
Class that parses hexadecimal ASCII text to bytes.
bool pull(uint8_t &output)
Pull out a new byte.
static uint8_t hex2int(char hex)
Convert a hexadecimal character to a 4-bit nibble.
HexPuller(CharPuller &&puller)