|
|
|
@ -145,14 +145,8 @@ void SHNFile::Decrypt(){ |
|
|
|
|
} |
|
|
|
|
std::vector<std::byte>&SHNFile::ReadBytes(int bytes){ |
|
|
|
|
readArr.clear(); |
|
|
|
|
for(int i=0;i<bytes;i++){ |
|
|
|
|
if(marker<data.size()){ |
|
|
|
|
readArr.push_back(data[marker]); |
|
|
|
|
marker++; |
|
|
|
|
} else { |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
std::copy(data.begin()+marker,data.begin()+marker+bytes,std::back_inserter(readArr)); |
|
|
|
|
marker+=bytes; |
|
|
|
|
return readArr; |
|
|
|
|
} |
|
|
|
|
std::byte SHNFile::ReadByte(){ |
|
|
|
|