-
Notifications
You must be signed in to change notification settings - Fork 456
Add varint reader/writer - Closes #5219 & #5221 & #5229 & #5230 #5319
Conversation
🌱 Add varint and zigzag encoding and tests
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.
I am not sure that it is the responsability of the varint encoder is to check the range of the varint. I left a few comments in this regard.
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.
Other than Maxime comments looks good.
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.
only tiny comments in test section, and a typo
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.
looks good from my side.
What was the problem?
This PR resolves #5219 , resolves #5221, resolves #5229 and #5230
How was it solved?
Add reader and writer for varint and zigzag, which are used for sint and uint
How was it tested?