-
Notifications
You must be signed in to change notification settings - Fork 819
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
int_size IS_8 takes two bytes for each uint8 #935
Comments
Varints with value >= 128 use two bytes when encoded: https://protobuf.dev/programming-guides/encoding/#varints For data like that, you probably want to use the |
Thanks, I didn't know that, and I tried with bytes but I don't remember why it didn't work in the beginning of this exploration. Also with |
Encoding bytes is the same as encoding string here, just replace strlen() with the actual binary data length: |
Thanks! I did a mistake the first time that I try with encoding string, I was close. Thanks for your fast feedback and for this wonderful library. Is working better: espnow_video.mp4 |
Overview
I don't know yet if this is an issue. I'm trying to reduce the current size of my payload or encoded stream, and I notice that for each insertion of each uint8, the stream add two bytes, and should be one byte, I guess. I tested different options but nothing.
My proto definition:
My code:
Full code
The text was updated successfully, but these errors were encountered: