MCPcopy Create free account
hub / github.com/anyrtcIO-Community/anyRTC-RTMP-OpenSource / OpenFile

Method OpenFile

webrtc/base/unixfilesystem.cc:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125FileStream *UnixFilesystem::OpenFile(const Pathname &filename,
126 const std::string &mode) {
127 FileStream *fs = new FileStream();
128 if (fs && !fs->Open(filename.pathname().c_str(), mode.c_str(), NULL)) {
129 delete fs;
130 fs = NULL;
131 }
132 return fs;
133}
134
135bool UnixFilesystem::CreatePrivateFile(const Pathname &filename) {
136 int fd = open(filename.pathname().c_str(),

Callers 2

Calls 2

pathnameMethod · 0.80
OpenMethod · 0.45

Tested by

no test coverage detected