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

Function gzread

devtools/gossmap-compress.c:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#define gzdopen(fd, mode) (fd)
25#define gzclose(outf) close(outf)
26static int gzread(int fd, void *buf, size_t len)
27{
28 if (read_all(fd, buf, len))
29 return len;
30 return 0;
31}
32static int gzwrite(int fd, const void *buf, size_t len)
33{
34 if (write_all(fd, buf, len))

Callers 2

read_bigsizeFunction · 0.85
mainFunction · 0.85

Calls 1

read_allFunction · 0.85

Tested by

no test coverage detected