| 820 | } |
| 821 | |
| 822 | static void pt_wnumber(pt_wire *wire, uint64_t number, size_t width) { |
| 823 | unsigned char bytes[8]; |
| 824 | for (size_t i = 0; i < width; i++) |
| 825 | bytes[width - 1 - i] = (unsigned char)(number >> (i * 8)); |
| 826 | pt_wbytes(wire, bytes, width); |
| 827 | } |
| 828 | |
| 829 | static void pt_wstring(pt_wire *wire, const char *value) { |
| 830 | size_t length = strlen(value); |
no test coverage detected