MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / copy2buff

Function copy2buff

third-party/lua-5.3.5/src/lvm.c:460–467  ·  view source on GitHub ↗

copy strings in stack from top - n up to top - 1 to buffer */

Source from the content-addressed store, hash-verified

458
459/* copy strings in stack from top - n up to top - 1 to buffer */
460static void copy2buff (StkId top, int n, char *buff) {
461 size_t tl = 0; /* size already copied */
462 do {
463 size_t l = vslen(top - n); /* length of string being copied */
464 memcpy(buff + tl, svalue(top - n), l * sizeof(char));
465 tl += l;
466 } while (--n > 0);
467}
468
469
470/*

Callers 1

luaV_concatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected