14 static constexpr const char*
HEX_TABLE =
"0123456789ABCDEF";
19 static constexpr const char PREFIX[] =
"\\x";
23 static constexpr const uint64_t
LENGTH = 4;
27 static std::string
toString(
const uint8_t* value, uint64_t len);
35 static uint64_t
fromString(
const char* str, uint64_t length, uint8_t* resultBuffer);
39 return *
reinterpret_cast<const T*
>(data.
value.
getData());
44 return *
reinterpret_cast<T*
>(data);
48 static void validateHexCode(
const uint8_t* blobStr, uint64_t length, uint64_t curPos);
Definition array_utils.h:7
static uint64_t getBlobSize(const ku_string_t &blob)
static T getValue(char *data)
Definition blob.h:43
static uint64_t fromString(const char *str, uint64_t length, uint8_t *resultBuffer)
static std::string toString(const uint8_t *value, uint64_t len)
static T getValue(const blob_t &data)
Definition blob.h:38
static std::string toString(const blob_t &blob)
Definition blob.h:29
ku_string_t value
Definition blob.h:9
Definition ku_string.h:12
uint32_t len
Definition ku_string.h:18
const uint8_t * getData() const
Definition ku_string.h:30