31 for (
size_t i =
sizeof(
ret); i-- > 0;)
40 throw Exception(
"BufferFormat::UnsignedDecimal::write: overflow");
52 static_assert(std::is_unsigned<T>::value,
"UnsignedDecimal: unsigned type required");
60 return static_cast<char>(
'0' + r);
77 Hex hex(std::move(value));
79 for (
size_t i =
sizeof(
ret); i-- > 0;)
88 throw Exception(
"BufferFormat::Hex::write: overflow");
100 static_assert(std::is_unsigned<T>::value,
"BufferFormat::Hex: unsigned type required");
void write(const T *data, const size_t size)
Write data to the buffer.
char render_hex_char(const int c, const bool caps=false)