19 #include <uuid/common.h>
27 class PrintableString:
public ::Print {
29 explicit PrintableString(std::string &output)
33 ~PrintableString() =
default;
35 size_t write(uint8_t data)
final override {
36 output_.append(1,
reinterpret_cast<unsigned char>(data));
40 size_t write(
const uint8_t *buffer,
size_t size)
final override {
41 output_.append(
reinterpret_cast<const char*
>(buffer), size);
50 PrintableString pstr{output};
52 return printable.printTo(pstr);