UnRAR: Allow unpack directly from memory (no files)

This commit is contained in:
philsmd
2020-09-08 10:44:34 +02:00
parent be4e3df01b
commit 9f380afa13
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -326,3 +326,10 @@ void ComprDataIO::SetUnpackToMemory(byte *Addr,uint Size)
UnpackToMemoryAddr=Addr;
UnpackToMemorySize=Size;
}
void ComprDataIO::SetUnpackFromMemory(byte *Addr,uint Size)
{
UnpackFromMemory=true;
UnpackFromMemoryAddr=Addr;
UnpackFromMemorySize=Size;
}
+1
View File
@@ -74,6 +74,7 @@ class ComprDataIO
void SetAV15Encryption();
void SetCmt13Encryption();
void SetUnpackToMemory(byte *Addr,uint Size);
void SetUnpackFromMemory(byte *Addr,uint Size);
void SetCurrentCommand(wchar Cmd) {CurrentCommand=Cmd;}