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

Function read_template

devtools/gossmap-compress.c:448–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448static const u64 *read_template(const tal_t *ctx, gzFile inf, const char *what)
449{
450 size_t count = read_bigsize(inf);
451 u64 *template = tal_arr(ctx, u64, count);
452
453 for (size_t i = 0; i < count; i++)
454 template[i] = read_bigsize(inf);
455
456 if (verbose)
457 printf("%zu unique %s\n", count, what);
458
459 return template;
460}
461
462static u64 read_val(gzFile inf, const u64 *template)
463{

Callers 1

mainFunction · 0.85

Calls 1

read_bigsizeFunction · 0.85

Tested by

no test coverage detected