MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / write

Method write

extlibs/fmt/src/os.cc:240–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240std::size_t file::write(const void* buffer, std::size_t count) {
241 RWResult result = 0;
242 FMT_RETRY(result, FMT_POSIX_CALL(write(fd_, buffer, convert_rwcount(count))));
243 if (result < 0) FMT_THROW(system_error(errno, "cannot write to file"));
244 return internal::to_unsigned(result);
245}
246
247file file::dup(int fd) {
248 // Don't retry as dup doesn't return EINTR.

Callers 7

operator <<Function · 0.45
extractZipFunction · 0.45
extractFileFunction · 0.45
unzipper.cppFile · 0.45
extractZipFunction · 0.45
extractFileFunction · 0.45
os.ccFile · 0.45

Calls 3

writeFunction · 0.85
convert_rwcountFunction · 0.85
system_errorFunction · 0.85

Tested by

no test coverage detected