Resize the target array if necessary and read the given number of bytes to the data array
| 85 | #if SSE_CONVERSION |
| 86 | // Resize the target array if necessary and read the given number of bytes to the data array |
| 87 | void FileSource::readBytes(byteArrayAligned &targetBuffer, int64_t startPos, int64_t nrBytes) |
| 88 | { |
| 89 | if (!isOk()) |
| 90 | return; |
| 91 | |
| 92 | if (targetBuffer.size() < nrBytes) |
| 93 | targetBuffer.resize(nrBytes); |
| 94 | |
| 95 | srcFile.seek(startPos); |
| 96 | srcFile.read(targetBuffer.data(), nrBytes); |
| 97 | } |
| 98 | #endif |
| 99 | |
| 100 | // Resize the target array if necessary and read the given number of bytes to the data array |
no test coverage detected