mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
make more use of stream.CopyTo on (de)compressors, plus several cosmetics
This commit is contained in:
@@ -78,9 +78,8 @@ namespace OpenSim.Framework.AssetLoader.Filesystem
|
||||
if (fInfo.Exists)
|
||||
{
|
||||
FileStream fStream = new FileStream(path, FileMode.Open, FileAccess.Read);
|
||||
byte[] idata = new byte[numBytes];
|
||||
BinaryReader br = new BinaryReader(fStream);
|
||||
idata = br.ReadBytes((int)numBytes);
|
||||
byte[] idata = br.ReadBytes((int)numBytes);
|
||||
br.Close();
|
||||
fStream.Close();
|
||||
info.Data = idata;
|
||||
|
||||
Reference in New Issue
Block a user