MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / addnum2buff

Function addnum2buff

extlibs/lua/src/lobject.c:449–453  ·  view source on GitHub ↗

** Add a number to the buffer. */

Source from the content-addressed store, hash-verified

447** Add a number to the buffer.
448*/
449static void addnum2buff (BuffFS *buff, TValue *num) {
450 char *numbuff = getbuff(buff, MAXNUMBER2STR);
451 int len = tostringbuff(num, numbuff); /* format number into 'numbuff' */
452 addsize(buff, len);
453}
454
455
456/*

Callers 1

luaO_pushvfstringFunction · 0.85

Calls 2

getbuffFunction · 0.85
tostringbuffFunction · 0.85

Tested by

no test coverage detected