MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / write

Method write

Extension/Modules/lua_process.cpp:334–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334int ProcessData::write(lua_State *L)
335{
336 ProcessData *pd = checkProcess(L, 1);
337 if (!pd || lua_gettop(L) < 2 || !lua_isstring(L, 2)) return 0;
338 size_t len = 0;
339 const char *s = lua_tolstring(L, 2, &len);
340 lua_pushinteger(L, pd->p->write(s, len));
341 return 1;
342}
343
344int ProcessData::onevent(lua_State *L)
345{

Callers 9

isRunningFunction · 0.45
saveCurSRTSubMethod · 0.45
replyReadyReadMethod · 0.45
replyFinishedMethod · 0.45
writeLogFileMethod · 0.45
initActionsMethod · 0.45
initActionsMethod · 0.45
~ScriptBaseMethod · 0.45
DPlayer.min.jsFile · 0.45

Calls 4

lua_gettopFunction · 0.85
lua_isstringFunction · 0.85
lua_tolstringFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected