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

Function strbuf_set_increment

deps/lua/src/strbuf.c:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void strbuf_set_increment(strbuf_t *s, int increment)
85{
86 /* Increment > 0: Linear buffer growth rate
87 * Increment < -1: Exponential buffer growth rate */
88 if (increment == 0 || increment == -1)
89 die("BUG: Invalid string increment");
90
91 s->increment = increment;
92}
93
94static inline void debug_stats(strbuf_t *s)
95{

Callers

nothing calls this directly

Calls 1

dieFunction · 0.85

Tested by

no test coverage detected