MCPcopy Index your code
hub / github.com/git/git / use

Function use

builtin/unpack-objects.c:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90static void use(int bytes)
91{
92 if (bytes > len)
93 die("used more bytes than were available");
94 len -= bytes;
95 offset += bytes;
96
97 /* make sure off_t is sufficiently large not to wrap */
98 if (signed_add_overflows(consumed_bytes, bytes))
99 die("pack too large for current definition of off_t");
100 consumed_bytes += bytes;
101 if (max_input_size && consumed_bytes > max_input_size)
102 die(_("pack exceeds maximum allowed size"));
103 display_throughput(progress, consumed_bytes);
104}
105
106/*
107 * Decompress zstream from the standard input into a newly

Callers 6

get_dataFunction · 0.70
feed_input_zstreamFunction · 0.70
unpack_delta_entryFunction · 0.70
unpack_oneFunction · 0.70
unpack_allFunction · 0.70
cmd_unpack_objectsFunction · 0.70

Calls 2

display_throughputFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected