MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / strbuf_empty_length

Function strbuf_empty_length

deps/lua/src/strbuf.h:90–93  ·  view source on GitHub ↗

Return bytes remaining in the string buffer * Ensure there is space for a NULL terminator. */

Source from the content-addressed store, hash-verified

88/* Return bytes remaining in the string buffer
89 * Ensure there is space for a NULL terminator. */
90static inline int strbuf_empty_length(strbuf_t *s)
91{
92 return s->size - s->length - 1;
93}
94
95static inline void strbuf_ensure_empty_length(strbuf_t *s, int len)
96{

Callers 3

strbuf_append_stringFunction · 0.85
strbuf_append_fmt_retryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected