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

Function validateSliceOffset

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

Source from the content-addressed store, hash-verified

57}
58
59arrow::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
67arrow::Status validateSliceLength(const int64_t length) {
68 if (length < 0) {

Callers 1

sliceMethod · 0.85

Calls 2

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected