| 810 | } pt_wire; |
| 811 | |
| 812 | static void pt_wbytes(pt_wire *wire, const void *bytes, size_t length) { |
| 813 | if (!wire->ok || length > sizeof(wire->bytes) - wire->used) { |
| 814 | wire->ok = false; |
| 815 | return; |
| 816 | } |
| 817 | if (length) |
| 818 | memcpy(wire->bytes + wire->used, bytes, length); |
| 819 | wire->used += length; |
| 820 | } |
| 821 | |
| 822 | static void pt_wnumber(pt_wire *wire, uint64_t number, size_t width) { |
| 823 | unsigned char bytes[8]; |
no outgoing calls
no test coverage detected