mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
apparently mono DeflateStream has no CopyTo method =(
This commit is contained in:
@@ -566,8 +566,12 @@ namespace OpenSim.Region.Physics.Meshing
|
||||
{
|
||||
byte[] readBuffer = new byte[2048];
|
||||
inMs.Read(readBuffer, 0, 2); // skip first 2 bytes in header
|
||||
int readLen = 0;
|
||||
|
||||
decompressionStream.CopyTo(outMs);
|
||||
while ((readLen = decompressionStream.Read(readBuffer, 0, readBuffer.Length)) > 0)
|
||||
outMs.Write(readBuffer, 0, readLen);
|
||||
|
||||
outMs.Flush();
|
||||
|
||||
outMs.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user