MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_vstring_space

Function acl_vstring_space

lib_acl/src/stdlib/acl_vstring.c:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128/* acl_vstring_space - vbuf callback to reserve space */
129
130int acl_vstring_space(ACL_VBUF *bp, ssize_t len)
131{
132 ssize_t need, n = bp->len - (bp->ptr - bp->data);
133
134 if (len < 0) {
135 acl_msg_panic("%s: bad length %ld", __FUNCTION__, (long) len);
136 }
137 if ((need = len - n) > 0) {
138 return vstring_extend(bp, need);
139 }
140 return 0;
141}
142
143void acl_vstring_init(ACL_VSTRING *vp, size_t len)
144{

Callers 1

acl_vbuf_spaceFunction · 0.85

Calls 2

acl_msg_panicFunction · 0.85
vstring_extendFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…