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

Function addnum2buff

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

** Add a number to the buffer. */

Source from the content-addressed store, hash-verified

457** Add a number to the buffer.
458*/
459static void addnum2buff (BuffFS *buff, TValue *num) {
460 char *numbuff = getbuff(buff, MAXNUMBER2STR);
461 int len = tostringbuff(num, numbuff); /* format number into 'numbuff' */
462 addsize(buff, len);
463}
464
465
466/*

Callers 1

luaO_pushvfstringFunction · 0.85

Calls 2

getbuffFunction · 0.85
tostringbuffFunction · 0.85

Tested by

no test coverage detected