mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 11:38:56 +08:00
uorb: compress format definitions
Reduces flash usage by ~16KB. - compress formats at build-time into a single string with all formats - then at runtime iteratively decompress using https://github.com/atomicobject/heatshrink
This commit is contained in:
committed by
Thomas Stastny
parent
142e44c418
commit
1ad5a9de08
@@ -99,6 +99,12 @@ public:
|
||||
const T *begin() const { return &_items[0]; }
|
||||
const T *end() const { return &_items[_size]; }
|
||||
|
||||
void clear()
|
||||
{
|
||||
_size = 0;
|
||||
_overflow = false;
|
||||
}
|
||||
|
||||
private:
|
||||
T _items[N];
|
||||
size_t _size{0};
|
||||
|
||||
Reference in New Issue
Block a user