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

Function mutable_address

cpp/src/arrow/buffer.h:330–335  ·  view source on GitHub ↗

\brief Return a writable device address to the buffer's data The buffer has to be a mutable buffer (`is_mutable()` is true). Otherwise, an assertion may be thrown or 0 may be returned.

Source from the content-addressed store, hash-verified

328 /// The buffer has to be a mutable buffer (`is_mutable()` is true).
329 /// Otherwise, an assertion may be thrown or 0 may be returned.
330 uintptr_t mutable_address() const {
331#ifndef NDEBUG
332 CheckMutable();
333#endif
334 return ARROW_PREDICT_TRUE(is_mutable_) ? reinterpret_cast<uintptr_t>(data_) : 0;
335 }
336
337 /// \brief Return the buffer's size in bytes
338 int64_t size() const { return size_; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected