Small helper to append data to a buffer and update the position * into the buffer */
| 143 | * into the buffer |
| 144 | */ |
| 145 | static void write_buffer(u8 *dst, const void *src, const size_t len, int *pos) |
| 146 | { |
| 147 | memcpy(dst + *pos, src, len); |
| 148 | *pos += len; |
| 149 | } |
| 150 | |
| 151 | u8 *serialize_onionpacket( |
| 152 | const tal_t *ctx, |
no outgoing calls
no test coverage detected