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

Function SliceMutableBufferSafe

cpp/src/arrow/buffer.cc:78–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78Result<std::shared_ptr<Buffer>> SliceMutableBufferSafe(std::shared_ptr<Buffer> buffer,
79 int64_t offset) {
80 RETURN_NOT_OK(CheckBufferSlice(*buffer, offset));
81 return SliceMutableBuffer(std::move(buffer), offset);
82}
83
84Result<std::shared_ptr<Buffer>> SliceMutableBufferSafe(std::shared_ptr<Buffer> buffer,
85 int64_t offset, int64_t length) {

Callers

nothing calls this directly

Calls 2

CheckBufferSliceFunction · 0.85
SliceMutableBufferFunction · 0.70

Tested by

no test coverage detected