| 49 | } |
| 50 | |
| 51 | arrow::Status validateInRange(const int32_t matlab_index, const int32_t num_fields) { |
| 52 | if (matlab_index < 1 || matlab_index > num_fields) { |
| 53 | const auto msg = makeIndexOutOfRangeErrorMessage(matlab_index, num_fields); |
| 54 | return arrow::Status::Invalid(std::move(msg)); |
| 55 | } |
| 56 | return arrow::Status::OK(); |
| 57 | } |
| 58 | |
| 59 | arrow::Status validateSliceOffset(const int64_t matlab_offset) { |
| 60 | if (matlab_offset < 1) { |
no test coverage detected