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

Function tal_arr_append_bytes

common/utils.c:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static void tal_arr_append_bytes(void *p, const void *append, size_t bytes)
151{
152 void **pptr = p;
153 size_t oldsize = tal_bytelen(*pptr);
154 tal_resize(pptr, oldsize + bytes);
155 /* Blah blah blah memcpy NULL blah blah */
156 if (append || bytes)
157 memcpy(*pptr + oldsize, memcheck(append, bytes), bytes);
158 if (taken(append))
159 tal_free(append);
160}
161
162void tal_arr_append_(void *p, const void *append TAKES)
163{

Callers 2

tal_arr_append_Function · 0.85
tal_arr_appendn_Function · 0.85

Calls 3

tal_bytelenFunction · 0.85
takenFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected