Get a batch of values return the number of decoded elements. May write fewer elements to the output than requested if there are not enough values left.
| 236 | /// May write fewer elements to the output than requested if there are not enough values |
| 237 | /// left. |
| 238 | [[nodiscard]] rle_size_t GetBatch(BitmapSpanMut out, rle_size_t batch_size) { |
| 239 | auto n_vals = GetAdvanceCapacity(batch_size); |
| 240 | arrow::internal::CopyBitmap(unread_values_ptr(), unread_values_bit_offset(), n_vals, |
| 241 | out.data(), out.bit_start()); |
| 242 | return Advance(n_vals); |
| 243 | } |
| 244 | |
| 245 | private: |
| 246 | /// The pointer to the beginning of the run |
nothing calls this directly
no test coverage detected