MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / loadHeader

Method loadHeader

src/library/blas/generic/binary_lookup.cc:267–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267bool BinaryLookup::loadHeader(std::ifstream &file, size_t length)
268{
269 file.read ((char*)&this->m_header, sizeof(Header));
270
271 // FIXME: Consider LSB Vs MSB number representation
272 assert(getStorageMode(this->m_header.magic_key) == LSB);
273
274 if (this->m_header.whole_file_size != (int)length)
275 {
276 // the file has not been correctly initialized (yet)
277 return false;
278 }
279
280 return true;
281}
282
283bool BinaryLookup::loadBinaryAndSignature(std::ifstream &file)
284{

Callers

nothing calls this directly

Calls 1

getStorageModeFunction · 0.85

Tested by

no test coverage detected