MCPcopy Create free account
hub / github.com/Tencent/UnLua / meth_dirty

Function meth_dirty

Plugins/UnLuaExtensions/LuaSocket/Source/src/unixstream.cpp:148–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static int meth_dirty(lua_State *L) {
149 p_unix un = (p_unix) auxiliar_checkgroup(L, "unixstream{any}", 1);
150 lua_pushboolean(L, !buffer_isempty(&un->buf));
151 return 1;
152}
153
154/*-------------------------------------------------------------------------*\
155* Waits for and returns a client object attempting connection to the

Callers

nothing calls this directly

Calls 3

auxiliar_checkgroupFunction · 0.85
lua_pushbooleanFunction · 0.85
buffer_isemptyFunction · 0.85

Tested by

no test coverage detected