jorgecarleitao / arrow2

Transmute-free Rust library to work with the Arrow format
Apache License 2.0
1.07k stars 223 forks source link

Added `Buffer::is_sliced` #1480

Closed ritchie46 closed 1 year ago

ritchie46 commented 1 year ago

During control flow decisions lower level users sometimes need to know if the data by the buffer is sliced or not. This gives that info.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -0.02 :warning:

Comparison is base (b09e580) 83.73% compared to head (353222d) 83.72%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1480 +/- ## ========================================== - Coverage 83.73% 83.72% -0.02% ========================================== Files 389 389 Lines 41811 41814 +3 ========================================== - Hits 35009 35007 -2 - Misses 6802 6807 +5 ``` | [Impacted Files](https://app.codecov.io/gh/jorgecarleitao/arrow2/pull/1480?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jorge+Leitao) | Coverage Δ | | |---|---|---| | [src/buffer/immutable.rs](https://app.codecov.io/gh/jorgecarleitao/arrow2/pull/1480?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jorge+Leitao#diff-c3JjL2J1ZmZlci9pbW11dGFibGUucnM=) | `85.47% <0.00%> (-2.25%)` | :arrow_down: | ... and [4 files with indirect coverage changes](https://app.codecov.io/gh/jorgecarleitao/arrow2/pull/1480/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jorge+Leitao)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.