| 324 | } |
| 325 | |
| 326 | bool 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 | |
| 342 | bool FFTBinaryLookup::loadBinaryAndSignature(std::ifstream &file) |
| 343 | { |
nothing calls this directly
no test coverage detected