35 class binary :
public std::basic_string<quint8>
44 out <<
"+----------+----------+----------+----------+" << std::endl;
46 for(
size_t i = 0; i < data.size(); i++)
49 out << std::hex << (int)data[i] <<
" | ";
53 out <<
"+----------+----------+----------+----------+";
54 if( i != data.size() - 1 )
57 out << std::endl <<
"| ";
A type representing a contigous byte stream.
std::ostream & operator<<(std::ostream &out, const binary &data)
Output operator for binary.