MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / clearbuff

Function clearbuff

lib/lua/src/lobject.c:428–431  ·  view source on GitHub ↗

** empty the buffer space into the stack */

Source from the content-addressed store, hash-verified

426** empty the buffer space into the stack
427*/
428static void clearbuff (BuffFS *buff) {
429 pushstr(buff, buff->space, buff->blen); /* push buffer contents */
430 buff->blen = 0; /* space now is empty */
431}
432
433
434/*

Callers 3

getbuffFunction · 0.85
addstr2buffFunction · 0.85
luaO_pushvfstringFunction · 0.85

Calls 1

pushstrFunction · 0.85

Tested by

no test coverage detected