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

Method SeekToFirst

src/io/binfile_reader.cc:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void BinFileReader::SeekToFirst() {
90 bufsize_ = 0;
91 offset_ = 0;
92 fdat_.clear();
93 fdat_.seekg(0);
94 CHECK(fdat_.is_open()) << "Cannot create file " << path_;
95}
96
97bool BinFileReader::OpenFile() {
98 buf_ = new char[capacity_];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected