MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / copy2buff

Function copy2buff

src/Chain/libraries/glua/lvm.cpp:506–513  ·  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

504
505/* copy strings in stack from top - n up to top - 1 to buffer */
506static void copy2buff(StkId top, int n, char *buff) {
507 size_t tl = 0; /* size already copied */
508 do {
509 size_t l = vslen(top - n); /* length of string being copied */
510 memcpy(buff + tl, svalue(top - n), l * sizeof(char));
511 tl += l;
512 } while (--n > 0);
513}
514
515
516/*

Callers 1

luaV_concatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected