MCPcopy Create free account
hub / github.com/apache/arrow / Write

Method Write

cpp/src/arrow/io/file.cc:163–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

IOErrorFunction · 0.85
FileWriteFunction · 0.85
CheckClosedFunction · 0.70
fdMethod · 0.45

Tested by

no test coverage detected