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

Function luaL_addlstring

3rd/lua-5.4.3/src/lauxlib.c:579–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577
578
579LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) {
580 if (l > 0) { /* avoid 'memcpy' when 's' can be NULL */
581 char *b = prepbuffsize(B, l, -1);
582 memcpy(b, s, l * sizeof(char));
583 luaL_addsize(B, l);
584 }
585}
586
587
588LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s) {

Callers 9

writerFunction · 0.85
add_sFunction · 0.85
add_valueFunction · 0.85
str_gsubFunction · 0.85
str_packFunction · 0.85
luaL_addstringFunction · 0.85
luaL_addgsubFunction · 0.85
tconcatFunction · 0.85
setpathFunction · 0.85

Calls 1

prepbuffsizeFunction · 0.85

Tested by

no test coverage detected