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