Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ChristiaanWillemsen opened this issue Jul 4, 2023 · 0 comments
Open

Comments

@ChristiaanWillemsen
Copy link

So, we have this use case:

  • There fixed buffer of data to be sent, let's say 300 bytes
  • The buffer can be filled with entries of varying sizes until the buffer is full. Only complete entries should be contained in the buffer. An entry is between 30 and 60 bytes in length.

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant