| 4343 | "f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff"; |
| 4344 | |
| 4345 | static String toHex16Bit(unsigned int x) { |
| 4346 | const unsigned int hi = (x >> 8) & 0xff; |
| 4347 | const unsigned int lo = x & 0xff; |
| 4348 | String result(4, ' '); |
| 4349 | result[0] = hex2[2 * hi]; |
| 4350 | result[1] = hex2[2 * hi + 1]; |
| 4351 | result[2] = hex2[2 * lo]; |
| 4352 | result[3] = hex2[2 * lo + 1]; |
| 4353 | return result; |
| 4354 | } |
| 4355 | |
| 4356 | static void appendRaw(String& result, unsigned ch) { |
| 4357 | result += static_cast<char>(ch); |