mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-13 02:48:23 +00:00
[common] ringbuffer: add getLength method
This commit is contained in:
@@ -69,6 +69,11 @@ void ringbuffer_reset(RingBuffer rb)
|
||||
rb->count = 0;
|
||||
}
|
||||
|
||||
int ringbuffer_getLength(const RingBuffer rb)
|
||||
{
|
||||
return rb->length;
|
||||
}
|
||||
|
||||
int ringbuffer_getStart(const RingBuffer rb)
|
||||
{
|
||||
return rb->start;
|
||||
|
Reference in New Issue
Block a user