You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
arrow::util::span (a backport of C++20 std::span) is more generally applicable than std::vector, so any public API currently accepting a vector const-ref argument should instead accept a span argument.
This could be broken down into several subtasks or PRs if deemed convenient.
Component(s)
C++
The text was updated successfully, but these errors were encountered:
…_utilities instead of std::vector (#44796)
### Rationale for this change
`arrow::util::span` (a backport of C++20 `std::span`) is more generally applicable than `std::vector`, so any public API currently accepting a vector const-ref argument should instead accept a span argument.
### What changes are included in this PR?
`arrow::util::BytesToBits` accepts `arrow::util::span` instead of `std::vector`
### Are these changes tested?
Yes, existing C++ tests via CI
### Are there any user-facing changes?
Yes, from `Result<std::shared_ptr<Buffer>> BytesToBits(const std::vector<uint8_t>&, MemoryPool* pool)` to `Result<std::shared_ptr<Buffer>> BytesToBits(util::span<const uint8_t> bytes, MemoryPool* pool)`
* GitHub Issue: #44795
Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
Describe the enhancement requested
arrow::util::span
(a backport of C++20std::span
) is more generally applicable thanstd::vector
, so any public API currently accepting avector
const-ref argument should instead accept aspan
argument.This could be broken down into several subtasks or PRs if deemed convenient.
Component(s)
C++
The text was updated successfully, but these errors were encountered: