[common] ringbuffer: add getLength method

This commit is contained in:
Geoffrey McRae committed 2021-07-17 21:09:51 +10:00
1 parent c3bc5fb0ff
commit 41403286d1
2 files changed
+6

No files matched your search

+5
View File
@@ -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;