MCPcopy Create free account
hub / github.com/defold/defold / strbuf_empty_length

Function strbuf_empty_length

engine/script/src/luacjson/strbuf.h:95–98  ·  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

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

Callers 3

strbuf_append_stringFunction · 0.85
strbuf_append_fmt_retryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected