-
Notifications
You must be signed in to change notification settings - Fork 1
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
Define starflate::{copy,copy_n}
#109
base: master
Are you sure you want to change the base?
Conversation
Not sure if this is the right place for this header since I don't imagine |
7f78888
to
5f4cbee
Compare
Codecov Report
@@ Coverage Diff @@
## master #109 +/- ##
==========================================
- Coverage 58.98% 57.72% -1.27%
==========================================
Files 12 13 +1
Lines 885 965 +80
==========================================
+ Hits 522 557 +35
- Misses 363 408 +45
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
5730ed5
to
bc35ef4
Compare
`starflate::{copy,copy_n}` are variants of the standard library `copy` and `copy_n` algorithms but modified for use in DEFLATE decoding. Both of these algorithms specifically handle overlap of the source and destination ranges. `starflate::copy_n` takes an input iterator, distance, and output iterator, `starflate::copy` takes a source range and a destination range, returning the unwritten subrange of the destination range. Change-Id: I756a8416a82f4a2007c7f2461de04353aac667d6
bc35ef4
to
c2cd62a
Compare
I think this is the wrong approach and I'll update with a different design later. |
Do you want me to review? If not mark as draft please |
nope don't review, i'm going to change this at some point |
starflate::{copy,copy_n}
are variants of the standard librarycopy
and
copy_n
algorithms but modified for use in DEFLATE decoding. Bothof these algorithms specifically handle overlap of the source and
destination ranges.
starflate::copy_n
takes an input iterator, distance, and outputiterator,
starflate::copy
takes a source range and a destination range,returning the unwritten subrange of the destination range.
Change-Id: I756a8416a82f4a2007c7f2461de04353aac667d6