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:
Beat Küng
2023-11-08 00:31:26 -05:00
committed by Thomas Stastny
parent 142e44c418
commit 1ad5a9de08
27 changed files with 1736 additions and 252 deletions
+6
View File
@@ -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};