MCPcopy Create free account
hub / github.com/axboe/liburing / check_content

Function check_content

test/splice.c:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static int check_content(int fd, void *buf, int len, const void *src)
65{
66 int ret;
67
68 ret = read_buf(fd, buf, len);
69 if (ret)
70 return ret;
71
72 ret = memcmp(buf, src, len);
73 return (ret != 0) ? -1 : 0;
74}
75
76static int create_file(const char *filename)
77{

Callers 4

splice_to_pipeFunction · 0.85
splice_from_pipeFunction · 0.85
splice_pipe_to_pipeFunction · 0.85
check_teeFunction · 0.85

Calls 1

read_bufFunction · 0.70

Tested by

no test coverage detected