Import upstream version 1.6.0+git20210322.1.a1da81c
Debian Janitor
2 years ago
474 | 474 | void StrFileImpl::read(void* dataOut, const int64_t& count, int64_t* numRead) |
475 | 475 | { |
476 | 476 | if (m_file == NULL) throw CiftiException("read called on unopened StrFileImpl");//shouldn't happen |
477 | int64_t readret = fread(dataOut, 1, count, m_file);//expect fread to not have read size limitations comapred to memory | |
477 | int64_t readret = fread(dataOut, 1, count, m_file);//expect fread to not have read size limitations compared to memory | |
478 | 478 | m_curPos += readret;//the item size is 1 |
479 | 479 | CiftiAssert(m_curPos == ftello(m_file));//double check it in debug, ftello is fast on linux at least |
480 | 480 | if (numRead == NULL) |