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

Function fromwire_tal_arrn

wire/fromwire.c:214–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214u8 *fromwire_tal_arrn(const tal_t *ctx,
215 const u8 **cursor, size_t *max, size_t num)
216{
217 u8 *arr;
218 if (num == 0)
219 return NULL;
220
221 if (num > *max)
222 return fromwire_fail(cursor, max);
223
224 arr = tal_arr(ctx, u8, num);
225 fromwire_u8_array(cursor, max, arr, num);
226 return arr;
227}
228
229void fromwire_pad(const u8 **cursor, size_t *max, size_t num)
230{

Callers 4

fromwire_wally_tx_inputFunction · 0.50
fromwire_wally_tx_outputFunction · 0.50

Calls 2

fromwire_failFunction · 0.70
fromwire_u8_arrayFunction · 0.70

Tested by

no test coverage detected