[[arrow::export]]
| 86 | |
| 87 | // [[arrow::export]] |
| 88 | std::shared_ptr<arrow::Array> Array__Slice2(const std::shared_ptr<arrow::Array>& array, |
| 89 | R_xlen_t offset, R_xlen_t length) { |
| 90 | arrow::r::validate_slice_offset(offset, array->length()); |
| 91 | arrow::r::validate_slice_length(length, array->length() - offset); |
| 92 | return array->Slice(offset, length); |
| 93 | } |
| 94 | |
| 95 | void arrow::r::validate_index(int64_t i, int64_t len) { |
| 96 | if (i == NA_INTEGER) { |
no test coverage detected