| 62 | } |
| 63 | |
| 64 | bool ObjectFileReader::readNext(void* output) { |
| 65 | if (file == nullptr) { |
| 66 | LOGGER.error("File not open"); |
| 67 | return false; |
| 68 | } |
| 69 | |
| 70 | bool result = fread(output, recordSize, 1, file.get()) == 1; |
| 71 | if (result) { |
| 72 | recordsRead++; |
| 73 | } |
| 74 | |
| 75 | return result; |
| 76 | } |
| 77 | |
| 78 | } |
no test coverage detected