MCPcopy Create free account
hub / github.com/apache/singa / OpenFile

Method OpenFile

src/io/binfile_reader.cc:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97bool BinFileReader::OpenFile() {
98 buf_ = new char[capacity_];
99 fdat_.open(path_, std::ios::in | std::ios::binary);
100 if (!fdat_.is_open())
101 LOG(WARNING) << "Cannot open file " << path_;
102 return fdat_.is_open();
103}
104
105bool BinFileReader::ReadField(std::string* content) {
106 content->clear();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected