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

Method read

extlibs/fmt/src/os.cc:233–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233std::size_t file::read(void* buffer, std::size_t count) {
234 RWResult result = 0;
235 FMT_RETRY(result, FMT_POSIX_CALL(read(fd_, buffer, convert_rwcount(count))));
236 if (result < 0) FMT_THROW(system_error(errno, "cannot read from file"));
237 return internal::to_unsigned(result);
238}
239
240std::size_t file::write(const void* buffer, std::size_t count) {
241 RWResult result = 0;

Callers 1

zipper.cppFile · 0.45

Calls 2

convert_rwcountFunction · 0.85
system_errorFunction · 0.85

Tested by

no test coverage detected