Small helper to append data to a buffer and update the position * into the buffer */
| 171 | * into the buffer |
| 172 | */ |
| 173 | static void write_buffer(u8 *dst, const void *src, const size_t len, int *pos) |
| 174 | { |
| 175 | memcpy(dst + *pos, src, len); |
| 176 | *pos += len; |
| 177 | } |
| 178 | |
| 179 | u8 *serialize_onionpacket( |
| 180 | const tal_t *ctx, |
no outgoing calls
no test coverage detected