mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -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;
|
delete[] _buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// return total number of objects
|
||||||
|
uint16_t size(void) const {
|
||||||
|
return _size;
|
||||||
|
}
|
||||||
|
|
||||||
// return number of objects available to be read
|
// return number of objects available to be read
|
||||||
uint16_t available(void) const {
|
uint16_t available(void) const {
|
||||||
return _count;
|
return _count;
|
||||||
|
Loading…
Reference in New Issue
Block a user