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

Function buffer_isempty

Plugins/UnLuaExtensions/LuaSocket/Source/src/buffer.cpp:157–159  ·  view source on GitHub ↗

-------------------------------------------------------------------------*\ * Determines if there is any data in the read buffer \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

155* Determines if there is any data in the read buffer
156\*-------------------------------------------------------------------------*/
157int buffer_isempty(p_buffer buf) {
158 return buf->first >= buf->last;
159}
160
161/*=========================================================================*\
162* Internal functions

Callers 5

buffer_skipFunction · 0.85
buffer_getFunction · 0.85
meth_dirtyFunction · 0.85
meth_dirtyFunction · 0.85
meth_dirtyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected