MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / write

Method write

Source/3rdParty/fmt/os.cpp:277–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277auto file::write(const void* buffer, size_t count) -> size_t {
278 rwresult result = 0;
279 FMT_RETRY(result, FMT_POSIX_CALL(write(fd_, buffer, convert_rwcount(count))));
280 if (result < 0)
281 FMT_THROW(system_error(errno, FMT_STRING("cannot write to file")));
282 return detail::to_unsigned(result);
283}
284
285auto file::dup(int fd) -> file {
286 // Don't retry as dup doesn't return EINTR.

Callers 10

saveDownloadedFileMethod · 0.45
audioWriteFloatBufferMethod · 0.45
audioWriteShortBufferMethod · 0.45
audioWriteByteBufferMethod · 0.45
cliLuaWriteFileFunction · 0.45
SDL_RWwriteFunction · 0.45
write_controllersFunction · 0.45
write_bufferFunction · 0.45
flushMethod · 0.45

Calls 4

convert_rwcountFunction · 0.85
system_errorFunction · 0.85
to_unsignedFunction · 0.85
writeFunction · 0.70

Tested by

no test coverage detected