MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / clearbuff

Function clearbuff

3rd/lua-5.4.3/src/lobject.c:418–421  ·  view source on GitHub ↗

** empty the buffer space into the stack */

Source from the content-addressed store, hash-verified

416** empty the buffer space into the stack
417*/
418static void clearbuff (BuffFS *buff) {
419 pushstr(buff, buff->space, buff->blen); /* push buffer contents */
420 buff->blen = 0; /* space now is empty */
421}
422
423
424/*

Callers 3

getbuffFunction · 0.85
addstr2buffFunction · 0.85
luaO_pushvfstringFunction · 0.85

Calls 1

pushstrFunction · 0.85

Tested by

no test coverage detected