mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_HAL: Add size() method to RingBuffer ObjectArray
This commit is contained in:
parent
3ddd9a6bca
commit
149188de12
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user