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

Method loadHeader

src/library/fft_binary_lookup.cpp:326–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326bool FFTBinaryLookup::loadHeader(std::ifstream &file, size_t length)
327{
328 file.read ((char*)&this->m_header, sizeof(Header));
329
330 // FIXME: Consider LSB Vs MSB number representation
331 assert(getStorageMode(this->m_header.magic_key) == LSB);
332
333 if (this->m_header.whole_file_size != (int)length)
334 {
335 // the file has not been correctly initialized (yet)
336 return false;
337 }
338
339 return true;
340}
341
342bool FFTBinaryLookup::loadBinaryAndSignature(std::ifstream &file)
343{

Callers

nothing calls this directly

Calls 1

getStorageModeFunction · 0.85

Tested by

no test coverage detected