AP_HAL: Add size() method to RingBuffer ObjectArray

This commit is contained in:
fnoop 2017-09-16 15:07:11 +01:00 committed by Lucas De Marchi
parent 3ddd9a6bca
commit 149188de12
1 changed files with 5 additions and 0 deletions

View File

@ -198,6 +198,11 @@ public:
delete[] _buffer;
}
// return total number of objects
uint16_t size(void) const {
return _size;
}
// return number of objects available to be read
uint16_t available(void) const {
return _count;