| 321 | } |
| 322 | |
| 323 | Result<int64_t> BufferReader::DoReadAt(int64_t position, int64_t nbytes, void* buffer) { |
| 324 | RETURN_NOT_OK(CheckClosed()); |
| 325 | |
| 326 | ARROW_ASSIGN_OR_RAISE(nbytes, internal::ValidateReadRange(position, nbytes, size_)); |
| 327 | DCHECK_GE(nbytes, 0); |
| 328 | if (nbytes) { |
| 329 | memcpy(buffer, data_ + position, nbytes); |
| 330 | } |
| 331 | return nbytes; |
| 332 | } |
| 333 | |
| 334 | Result<std::shared_ptr<Buffer>> BufferReader::DoReadAt(int64_t position, int64_t nbytes) { |
| 335 | RETURN_NOT_OK(CheckClosed()); |
nothing calls this directly
no test coverage detected