MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / open

Method open

src/fs.cpp:162–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void ifstream::open(const fs::path& p, std::ios_base::openmode mode)
163{
164 close();
165 mode |= std::ios_base::in;
166 m_file = fsbridge::fopen(p, openmodeToStr(mode).c_str());
167 if (m_file == nullptr) {
168 return;
169 }
170 m_filebuf = __gnu_cxx::stdio_filebuf<char>(m_file, mode);
171 rdbuf(&m_filebuf);
172 if (mode & std::ios_base::ate) {
173 seekg(0, std::ios_base::end);
174 }
175}
176
177void ifstream::close()
178{

Callers 9

OpenMethod · 0.80
MakeMockMethod · 0.80
CDBMethod · 0.80
RewriteMethod · 0.80
RecoverMethod · 0.80
OpenMethod · 0.80
dumpwalletFunction · 0.80
importwalletFunction · 0.80
make_spinner.pyFile · 0.80

Calls 2

fopenFunction · 0.85
openmodeToStrFunction · 0.85

Tested by

no test coverage detected