| 318 | } |
| 319 | |
| 320 | Status 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 |