ocloc fixes

Change-Id: I3b60b7fafa8ae17fbf73680892838b1cabd24327
This commit is contained in:
chmielew
2020-03-02 13:15:50 +01:00
committed by sys_ocldev
parent c916cf0520
commit fa6608d20e
3 changed files with 15 additions and 9 deletions

View File

@@ -55,6 +55,10 @@ void BinaryEncoder::calculatePatchListSizes(std::vector<std::string> &ptmFile) {
}
bool BinaryEncoder::copyBinaryToBinary(const std::string &srcFileName, std::ostream &outBinary, uint32_t *binaryLength) {
if (argHelper->fileExists(srcFileName)) {
return false;
}
auto binary = argHelper->readBinaryFile(srcFileName);
auto length = binary.size();
outBinary.write(binary.data(), length);