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

Method SliceSafe

cpp/src/arrow/array/array_base.cc:286–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286Result<std::shared_ptr<Array>> Array::SliceSafe(int64_t offset, int64_t length) const {
287 ARROW_ASSIGN_OR_RAISE(auto sliced_data, data_->SliceSafe(offset, length));
288 return MakeArray(std::move(sliced_data));
289}
290
291Result<std::shared_ptr<Array>> Array::SliceSafe(int64_t offset) const {
292 if (offset < 0) {

Callers

nothing calls this directly

Calls 2

IndexErrorFunction · 0.85
MakeArrayFunction · 0.70

Tested by

no test coverage detected