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

Function write_buffer

common/sphinx.c:145–149  ·  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

143 * into the buffer
144 */
145static 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
151u8 *serialize_onionpacket(
152 const tal_t *ctx,

Callers 2

serialize_onionpacketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected