| 198 | "f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff"; |
| 199 | |
| 200 | static StringContainer toHex16Bit(unsigned int x) { |
| 201 | const unsigned int hi = (x >> 8) & 0xff; |
| 202 | const unsigned int lo = x & 0xff; |
| 203 | StringContainer result(4, ' '); |
| 204 | result[0] = hex2[2 * hi]; |
| 205 | result[1] = hex2[2 * hi + 1]; |
| 206 | result[2] = hex2[2 * lo]; |
| 207 | result[3] = hex2[2 * lo + 1]; |
| 208 | return result; |
| 209 | } |
| 210 | |
| 211 | static void appendRaw(StringContainer& result, unsigned ch) { |
| 212 | result += static_cast<char>(ch); |