| 4673 | "f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff"; |
| 4674 | |
| 4675 | static String toHex16Bit(unsigned int x) |
| 4676 | { |
| 4677 | const unsigned int hi = (x >> 8) & 0xff; |
| 4678 | const unsigned int lo = x & 0xff; |
| 4679 | String result(4, ' '); |
| 4680 | result[0] = hex2[2 * hi]; |
| 4681 | result[1] = hex2[2 * hi + 1]; |
| 4682 | result[2] = hex2[2 * lo]; |
| 4683 | result[3] = hex2[2 * lo + 1]; |
| 4684 | return result; |
| 4685 | } |
| 4686 | |
| 4687 | static void appendRaw(String &result, unsigned ch) { result += static_cast<char>(ch); } |
| 4688 |