| 74 | Result<int64_t> StdinStream::Tell() const { return pos_; } |
| 75 | |
| 76 | Result<int64_t> StdinStream::Read(int64_t nbytes, void* out) { |
| 77 | std::cin.read(reinterpret_cast<char*>(out), nbytes); |
| 78 | nbytes = std::cin.gcount(); |
| 79 | pos_ += nbytes; |
| 80 | return nbytes; |
| 81 | } |
| 82 | |
| 83 | Result<std::shared_ptr<Buffer>> StdinStream::Read(int64_t nbytes) { |
| 84 | ARROW_ASSIGN_OR_RAISE(auto buffer, AllocateResizableBuffer(nbytes)); |