| 163 | } |
| 164 | |
| 165 | MutableBuffer::MutableBuffer(const std::shared_ptr<Buffer>& parent, const int64_t offset, |
| 166 | const int64_t size) |
| 167 | : MutableBuffer(reinterpret_cast<uint8_t*>(parent->mutable_address()) + offset, |
| 168 | size) { |
| 169 | DCHECK(parent->is_mutable()) << "Must pass mutable buffer"; |
| 170 | parent_ = parent; |
| 171 | } |
| 172 | |
| 173 | Result<std::shared_ptr<Buffer>> AllocateBitmap(int64_t length, MemoryPool* pool) { |
| 174 | ARROW_ASSIGN_OR_RAISE(auto buf, AllocateBuffer(bit_util::BytesForBits(length), pool)); |
nothing calls this directly
no outgoing calls
no test coverage detected