| 161 | } |
| 162 | |
| 163 | Status Write(const void* data, int64_t length) { |
| 164 | RETURN_NOT_OK(CheckClosed()); |
| 165 | |
| 166 | std::lock_guard<std::mutex> guard(lock_); |
| 167 | RETURN_NOT_OK(CheckPositioned()); |
| 168 | if (length < 0) { |
| 169 | return Status::IOError("Length must be non-negative"); |
| 170 | } |
| 171 | return ::arrow::internal::FileWrite(fd_.fd(), reinterpret_cast<const uint8_t*>(data), |
| 172 | length); |
| 173 | } |
| 174 | |
| 175 | int fd() const { return fd_.fd(); } |
| 176 |
nothing calls this directly
no test coverage detected