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

Function SliceMutableBuffer

cpp/src/arrow/buffer.h:487–491  ·  view source on GitHub ↗

\brief Like SliceBuffer, but construct a mutable buffer slice. If the parent buffer is not mutable, behavior is undefined (it may abort in debug builds).

Source from the content-addressed store, hash-verified

485/// If the parent buffer is not mutable, behavior is undefined (it may abort
486/// in debug builds).
487static inline std::shared_ptr<Buffer> SliceMutableBuffer(std::shared_ptr<Buffer> buffer,
488 const int64_t offset) {
489 int64_t length = buffer->size() - offset;
490 return SliceMutableBuffer(std::move(buffer), offset, length);
491}
492
493/// \brief Input-checking version of SliceMutableBuffer
494///

Callers 4

TESTFunction · 0.70
TEST_FFunction · 0.50
AllocatePaddedBitmapMethod · 0.50
AllocatePaddedBufferMethod · 0.50

Calls 1

sizeMethod · 0.45

Tested by 2

TESTFunction · 0.56
TEST_FFunction · 0.40