51 s << std::showbase << std::setfill(
'0') << std::setw(
sizeof(T) * 2)
52 << std::hex << static_cast<int>(value);
65 std::string
to_hex(T *data, uint16_t length)
68 for (uint16_t i = 0; i < length; ++i) {
69 s <<
to_hex(data[i]) <<
" ";
std::string to_hex(T value)
Converts the numeric value into its hex representation.
Definition: utils.h:48