-
Notifications
You must be signed in to change notification settings - Fork 20
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
refactor: use key/value cursor for serialization, retire ring buffer #230
Conversation
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #230 +/- ##
==========================================
+ Coverage 75.45% 75.65% +0.19%
==========================================
Files 47 47
Lines 5847 5775 -72
==========================================
- Hits 4412 4369 -43
+ Misses 1435 1406 -29 ☔ View full report in Codecov by Sentry. |
I will review ASAP |
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Close #226 |
@@ -433,7 +395,7 @@ impl std::io::Read for ArcVecU8Cursor { | |||
let slice = self.inner.as_ref().as_slice(); | |||
let len = std::cmp::min(slice.len() - self.pos, buf.len()); | |||
buf.put_slice(&slice[self.pos..self.pos + len]); | |||
self.pos -= len; | |||
self.pos += len; |
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.
Is it a bug introduced from previous PR ?
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.
Yep, this PR is part of a series to make each PR small. The previous one is not fully tested.
Could you add some background info about this PR? |
The related issues informed some. |
What's changed and what's your intention?
As titled.
Checklist
make check
andmake test
ormake all
in my local envirorment.Related issues or PRs (optional)
#216
close #226