| 56 | } |
| 57 | |
| 58 | void BitmapFromVector(const std::vector<int>& values, int64_t bit_offset, |
| 59 | std::shared_ptr<Buffer>* out_buffer, int64_t* out_length) { |
| 60 | const int64_t length = values.size(); |
| 61 | *out_length = length; |
| 62 | ASSERT_OK_AND_ASSIGN(*out_buffer, AllocateEmptyBitmap(length + bit_offset)); |
| 63 | auto writer = BitmapWriter((*out_buffer)->mutable_data(), bit_offset, length); |
| 64 | WriteVectorToWriter(writer, values); |
| 65 | } |
| 66 | |
| 67 | std::shared_ptr<Buffer> BitmapFromString(const std::string& s) { |
| 68 | TypedBufferBuilder<bool> builder; |
no test coverage detected