| 369 | } |
| 370 | |
| 371 | Result<int64_t> BufferReader::DoRead(int64_t nbytes, void* out) { |
| 372 | RETURN_NOT_OK(CheckClosed()); |
| 373 | ARROW_ASSIGN_OR_RAISE(int64_t bytes_read, |
| 374 | DoReadAt(position_, nbytes, /*allow_short_read=*/true, out)); |
| 375 | position_ += bytes_read; |
| 376 | return bytes_read; |
| 377 | } |
| 378 | |
| 379 | Result<std::shared_ptr<Buffer>> BufferReader::DoRead(int64_t nbytes) { |
| 380 | RETURN_NOT_OK(CheckClosed()); |
nothing calls this directly
no test coverage detected