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

Function ValidateRange

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

Source from the content-addressed store, hash-verified

353}
354
355Status ValidateRange(int64_t offset, int64_t size) {
356 if (offset < 0 || size < 0) {
357 return Status::Invalid("Invalid IO range (offset = ", offset, ", size = ", size, ")");
358 }
359 return Status::OK();
360}
361
362#ifndef NDEBUG
363

Callers 2

ReadAtMethod · 0.85
WillNeedMethod · 0.85

Calls 2

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected