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

Function validateInRange

matlab/src/cpp/arrow/matlab/index/validate.cc:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51arrow::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
59arrow::Status validateSliceOffset(const int64_t matlab_offset) {
60 if (matlab_offset < 1) {

Callers 3

getFieldByIndexMethod · 0.85
getFieldByIndexMethod · 0.85
getFieldByIndexMethod · 0.85

Calls 3

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected