MCPcopy Create free account
hub / github.com/ElementsProject/lightning / write_buffer

Function write_buffer

common/sphinx.c:173–177  ·  view source on GitHub ↗

Small helper to append data to a buffer and update the position * into the buffer */

Source from the content-addressed store, hash-verified

171 * into the buffer
172 */
173static 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
179u8 *serialize_onionpacket(
180 const tal_t *ctx,

Callers 2

serialize_onionpacketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected