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

Function write_bigsize

devtools/gossmap-compress.c:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static void write_bigsize(gzFile outf, u64 val)
93{
94 u8 buf[BIGSIZE_MAX_LEN];
95 size_t len;
96
97 len = bigsize_put(buf, val);
98 if (gzwrite(outf, buf, len) == 0)
99 err(1, "Writing bigsize");
100}
101
102static u64 read_bigsize(gzFile inf)
103{

Callers 2

mainFunction · 0.85

Calls 3

gzwriteFunction · 0.85
errFunction · 0.85
bigsize_putFunction · 0.50

Tested by

no test coverage detected