| 95 | } |
| 96 | |
| 97 | bool 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 | |
| 105 | bool BinFileReader::ReadField(std::string* content) { |
| 106 | content->clear(); |
nothing calls this directly
no outgoing calls
no test coverage detected