atomicobject / heatshrink

data compression library for embedded/real-time systems
ISC License
1.31k stars 176 forks source link

Question on how to use encoder in this specific example #76

Open ChristiaanWillemsen opened 1 year ago

ChristiaanWillemsen commented 1 year ago

So, we have this use case:

Now the idea is to compress this buffer. But here I seem to run into the issue that the poll does not actually append data every time, so I have no way of knowing if the entry I compress actually fits in the buffer.

Is there a simple way to solve this?