Commits


Raúl Cumplido authored and GitHub committed 7af2ad47b09
GH-44795: [C++] Use arrow::util::span on arrow::util::bitmap_builders_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 <raulcumplido@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>