Definition at line 110 of file Converter.h.
References i.
112 if (
size%
sizeof(T)!=0)
113 throw std::runtime_error(
"GetHex: Total not dividable by typesize.");
115 const T *ptr =
reinterpret_cast<const T*
>(dat);
117 std::ostringstream text;
120 const size_t w = nearbyint(ceil(log2(
size+1)))/4+1;
122 for (
size_t i=0;
i<
size/
sizeof(T);
i++)
124 if (prefix && col!=0 &&
i%col==0)
125 text << std::setfill(
'0') << std::setw(w) <<
i <<
"| ";
127 text << std::setfill(
'0') << std::setw(2*
sizeof(T));
128 text << (
unsigned int)ptr[i] <<
':';
130 if (col!=0 && i%col==col-1)