MCPcopy Index your code
hub / github.com/RsyncProject/rsync / read_longint

Function read_longint

io.c:1928–1945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1926}
1927
1928int64 read_longint(int f)
1929{
1930#if SIZEOF_INT64 >= 8
1931 char b[9];
1932#endif
1933 int32 num = read_int(f);
1934
1935 if (num != (int32)0xffffffff)
1936 return num;
1937
1938#if SIZEOF_INT64 < 8
1939 rprintf(FERROR, "Integer overflow: attempted 64-bit offset\n");
1940 exit_cleanup(RERR_UNSUPPORTED);
1941#else
1942 read_buf(f, b, 8);
1943 return IVAL(b,0) | (((int64)IVAL(b,4))<<32);
1944#endif
1945}
1946
1947/* Debugging note: this will be named read_buf_() when using an external zlib. */
1948void read_buf(int f, char *buf, size_t len)

Callers 2

read_varlong30Function · 0.85
recv_file_entryFunction · 0.85

Calls 4

read_intFunction · 0.85
IVALFunction · 0.85
rprintfFunction · 0.70
read_bufFunction · 0.70

Tested by

no test coverage detected