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

Function strbuf_avail

strbuf.h:143–146  ·  view source on GitHub ↗

* Determine the amount of allocated but unused memory. */

Source from the content-addressed store, hash-verified

141 * Determine the amount of allocated but unused memory.
142 */
143static inline size_t strbuf_avail(const struct strbuf *sb)
144{
145 return sb->alloc ? sb->alloc - sb->len - 1 : 0;
146}
147
148/**
149 * Ensure that at least this amount of unused memory is available after

Callers 6

strbuf_vaddfFunction · 0.85
strbuf_getwholelineFunction · 0.85
crlf_to_gitFunction · 0.85
ident_to_gitFunction · 0.85
strbuf_addchFunction · 0.85
normalize_path_in_utf8Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected