add optional outputLength parameter when decompressing
This commit is contained in:
parent
e098b5090b
commit
9142f696a4
@ -32,11 +32,11 @@ namespace UniversalEditor.Compression
|
||||
outputStream.Close();
|
||||
return outputStream.ToArray();
|
||||
}
|
||||
public byte[] Decompress(byte[] inputData)
|
||||
public byte[] Decompress(byte[] inputData, int outputLength = 0)
|
||||
{
|
||||
System.IO.MemoryStream inputStream = new System.IO.MemoryStream(inputData);
|
||||
System.IO.MemoryStream outputStream = new System.IO.MemoryStream();
|
||||
Decompress(inputStream, outputStream);
|
||||
Decompress(inputStream, outputStream, 0, outputLength);
|
||||
outputStream.Close();
|
||||
return outputStream.ToArray();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user