MCPcopy Create free account
hub / github.com/defold/defold / buffer_isempty

Function buffer_isempty

engine/script/src/luasocket/buffer.c:156–158  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

154* Determines if there is any data in the read buffer
155\*-------------------------------------------------------------------------*/
156int buffer_isempty(p_buffer buf) {
157 return buf->first >= buf->last;
158}
159
160/*=========================================================================*\
161* 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