| 7 | #include <common/utils.h> |
| 8 | |
| 9 | void towire(u8 **pptr, const void *data, size_t len) |
| 10 | { |
| 11 | size_t oldsize = tal_count(*pptr); |
| 12 | |
| 13 | tal_resize(pptr, oldsize + len); |
| 14 | /* The C standards committee has a lot to answer for :( */ |
| 15 | if (len) |
| 16 | memcpy(*pptr + oldsize, memcheck(data, len), len); |
| 17 | } |
| 18 | |
| 19 | void towire_u8(u8 **pptr, u8 v) |
| 20 | { |
no outgoing calls
no test coverage detected