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

Function addnum2buff

lib/lua/src/lobject.c:469–473  ·  view source on GitHub ↗

** Add a numeral to the buffer. */

Source from the content-addressed store, hash-verified

467** Add a numeral to the buffer.
468*/
469static void addnum2buff (BuffFS *buff, TValue *num) {
470 char *numbuff = getbuff(buff, MAXNUMBER2STR);
471 int len = tostringbuff(num, numbuff); /* format number into 'numbuff' */
472 addsize(buff, len);
473}
474
475
476/*

Callers 1

luaO_pushvfstringFunction · 0.85

Calls 2

getbuffFunction · 0.85
tostringbuffFunction · 0.85

Tested by

no test coverage detected