| 59 | #define DIBS ((sizeof(size_t) * 8 / 7) + 1) |
| 60 | |
| 61 | static void dumpSize (DumpState *D, size_t x) { |
| 62 | lu_byte buff[DIBS]; |
| 63 | int n = 0; |
| 64 | do { |
| 65 | buff[DIBS - (++n)] = x & 0x7f; /* fill buffer in reverse order */ |
| 66 | x >>= 7; |
| 67 | } while (x != 0); |
| 68 | buff[DIBS - 1] |= 0x80; /* mark last byte */ |
| 69 | dumpVector(D, buff + DIBS - n, n); |
| 70 | } |
| 71 | |
| 72 | |
| 73 | static void dumpInt (DumpState *D, int x) { |
no outgoing calls
no test coverage detected