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

Method buffered_file

extlibs/fmt/src/os.cc:155–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155buffered_file::buffered_file(cstring_view filename, cstring_view mode) {
156 FMT_RETRY_VAL(file_, FMT_SYSTEM(fopen(filename.c_str(), mode.c_str())),
157 nullptr);
158 if (!file_)
159 FMT_THROW(system_error(errno, "cannot open file {}", filename.c_str()));
160}
161
162void buffered_file::close() {
163 if (!file_) return;

Callers

nothing calls this directly

Calls 2

system_errorFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected