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

Function strbuf_ensure_empty_length

deps/lua/src/strbuf.h:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static inline void strbuf_ensure_empty_length(strbuf_t *s, int len)
96{
97 if (len > strbuf_empty_length(s))
98 strbuf_resize(s, s->length + len);
99}
100
101static inline char *strbuf_empty_ptr(strbuf_t *s)
102{

Callers 5

json_append_stringFunction · 0.85
json_append_numberFunction · 0.85
strbuf_append_fmtFunction · 0.85
strbuf_append_charFunction · 0.85
strbuf_append_memFunction · 0.85

Calls 2

strbuf_empty_lengthFunction · 0.85
strbuf_resizeFunction · 0.85

Tested by

no test coverage detected