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

Function CircularBuffer_ItemCount

src/util/circular_buffer.c:46–53  ·  view source on GitHub ↗

returns number of items in buffer

Source from the content-addressed store, hash-verified

44
45// returns number of items in buffer
46uint64_t CircularBuffer_ItemCount
47(
48 CircularBuffer cb // buffer to inspect
49) {
50 ASSERT(cb != NULL);
51
52 return cb->item_count;
53}
54
55// returns buffer capacity
56uint64_t CircularBuffer_Cap

Callers 4

test_CircularBufferInitFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_CircularBufferInitFunction · 0.68