MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / CircularBuffer_Empty

Function CircularBuffer_Empty

src/util/circular_buffer.c:73–80  ·  view source on GitHub ↗

return true if buffer is empty

Source from the content-addressed store, hash-verified

71
72// return true if buffer is empty
73inline bool CircularBuffer_Empty
74(
75 const CircularBuffer cb // buffer to inspect
76) {
77 ASSERT(cb != NULL);
78
79 return cb->item_count == 0;
80}
81
82// returns true if buffer is full
83inline bool CircularBuffer_Full

Callers 5

_indexer_PopTaskFunction · 0.85
CircularBuffer_ReadFunction · 0.85
test_CircularBufferInitFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_CircularBufferInitFunction · 0.68