| 390 | } |
| 391 | |
| 392 | Status BufferReader::DoSeek(int64_t position) { |
| 393 | RETURN_NOT_OK(CheckClosed()); |
| 394 | |
| 395 | if (position < 0 || position > size_) { |
| 396 | return Status::IOError("Seek out of bounds"); |
| 397 | } |
| 398 | |
| 399 | position_ = position; |
| 400 | return Status::OK(); |
| 401 | } |
| 402 | |
| 403 | } // namespace io |
| 404 | } // namespace arrow |
nothing calls this directly
no test coverage detected