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

Add protobuf-style variable-length serialization / deserialization #608

Open
arnohaase opened this issue Mar 21, 2023 · 4 comments
Open

Comments

@arnohaase
Copy link

Variable-length integer encoding (protobuf style) is present in many network and file protocols. While it is not at the same level of 'standard' as LE / BE encoding, I would find it a highly useful addition to the Buf / BufMut traits.

I'm happy to provide a PR, but I wanted to check if you feel this fits into the crate's scope.

@Darksonn
Copy link
Contributor

My gut feeling is that this is outside of the scope.

@arnohaase
Copy link
Author

So - providing a separate crate extending Buf / BufMut functionality would probably be the best way to go?

@Darksonn
Copy link
Contributor

Sure, you can definitely do that.

@arnohaase
Copy link
Author

In case you are interested: https://github.com/arnohaase/bytes-varint

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

2 participants