MCPcopy Create free account
hub / github.com/apache/arrow / MutableBuffer

Method MutableBuffer

cpp/src/arrow/buffer.cc:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165MutableBuffer::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
173Result<std::shared_ptr<Buffer>> AllocateBitmap(int64_t length, MemoryPool* pool) {
174 ARROW_ASSIGN_OR_RAISE(auto buf, AllocateBuffer(bit_util::BytesForBits(length), pool));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected