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

Function meth_dirty

Plugins/UnLuaExtensions/LuaSocket/Source/src/tcp.cpp:201–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201static int meth_dirty(lua_State *L)
202{
203 p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1);
204 lua_pushboolean(L, !buffer_isempty(&tcp->buf));
205 return 1;
206}
207
208/*-------------------------------------------------------------------------*\
209* 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