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

Function writer

extlibs/lua/src/lstrlib.c:221–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220
221static int writer (lua_State *L, const void *b, size_t size, void *ud) {
222 struct str_Writer *state = (struct str_Writer *)ud;
223 if (!state->init) {
224 state->init = 1;
225 luaL_buffinit(L, &state->B);
226 }
227 luaL_addlstring(&state->B, (const char *)b, size);
228 return 0;
229}
230
231
232static int str_dump (lua_State *L) {

Callers

nothing calls this directly

Calls 2

luaL_buffinitFunction · 0.70
luaL_addlstringFunction · 0.70

Tested by

no test coverage detected