MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaL_addlstring

Function luaL_addlstring

libraries/AP_Scripting/lua/src/lauxlib.c:531–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529
530
531LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) {
532 if (l > 0) { /* avoid 'memcpy' when 's' can be NULL */
533 char *b = luaL_prepbuffsize(B, l);
534 memcpy(b, s, l * sizeof(char));
535 luaL_addsize(B, l);
536 }
537}
538
539
540LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s) {

Callers 8

writerFunction · 0.85
add_sFunction · 0.85
str_gsubFunction · 0.85
str_packFunction · 0.85
luaL_addstringFunction · 0.85
luaL_addvalueFunction · 0.85
luaL_gsubFunction · 0.85
tconcatFunction · 0.85

Calls 2

luaL_prepbuffsizeFunction · 0.85
memcpyFunction · 0.85

Tested by

no test coverage detected