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

Function ValidateRange

cpp/src/arrow/io/interfaces.cc:320–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320Status ValidateRange(int64_t offset, int64_t size) {
321 if (offset < 0 || size < 0) {
322 return Status::Invalid("Invalid IO range (offset = ", offset, ", size = ", size, ")");
323 }
324 return Status::OK();
325}
326
327#ifndef NDEBUG
328

Callers 2

ReadAtMethod · 0.85
WillNeedMethod · 0.85

Calls 2

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected