-
Notifications
You must be signed in to change notification settings - Fork 7
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
did-simple: implement varint encoding #96
Conversation
please give this an actual review, not just a lgtm stamp |
6c6da1b
to
f8e9c6c
Compare
f8e9c6c
to
07afa0f
Compare
0c19d66
to
07afa0f
Compare
07afa0f
to
0962abe
Compare
rebased on #96, merge that first.
6d03ed4
to
0962abe
Compare
0962abe
to
bc96ea0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok from my limited understanding of Rust, There are three cases: 1, 2 and 3 byte length, and each of the three cases should work.
I have a comment about the 0 case, since that should fall under case 1, but it seems to return length 0 instead, and I'm not sure if that is legal within the contract of this API
rebased on #96, merge that first.
Implements varint encoding in a const fn.