| 1776 | } |
| 1777 | |
| 1778 | void ExecuteSpacedBound(int nvalues, int repeats, int64_t valid_bits_offset, |
| 1779 | double null_probability, c_type half_range) { |
| 1780 | InitBoundData(nvalues, repeats, half_range); |
| 1781 | |
| 1782 | int64_t size = num_values_ + valid_bits_offset; |
| 1783 | auto rand = ::arrow::random::RandomArrayGenerator(1923); |
| 1784 | const auto array = rand.UInt8(size, 0, 100, null_probability); |
| 1785 | const auto valid_bits = array->null_bitmap_data(); |
| 1786 | CheckRoundtripSpaced(valid_bits, valid_bits_offset); |
| 1787 | } |
| 1788 | |
| 1789 | void CheckDecoding() { CheckDecoding(std::span(draws_, num_values_)); } |
| 1790 | |