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

Function SliceMutableBufferSafe

cpp/src/arrow/buffer.cc:77–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77Result<std::shared_ptr<Buffer>> SliceMutableBufferSafe(std::shared_ptr<Buffer> buffer,
78 int64_t offset) {
79 RETURN_NOT_OK(CheckBufferSlice(*buffer, offset));
80 return SliceMutableBuffer(std::move(buffer), offset);
81}
82
83Result<std::shared_ptr<Buffer>> SliceMutableBufferSafe(std::shared_ptr<Buffer> buffer,
84 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