| 57 | } |
| 58 | |
| 59 | arrow::Status validateSliceOffset(const int64_t matlab_offset) { |
| 60 | if (matlab_offset < 1) { |
| 61 | const std::string msg = "Slice offset must be positive"; |
| 62 | return arrow::Status::Invalid(std::move(msg)); |
| 63 | } |
| 64 | return arrow::Status::OK(); |
| 65 | } |
| 66 | |
| 67 | arrow::Status validateSliceLength(const int64_t length) { |
| 68 | if (length < 0) { |