make more use of stream.CopyTo on (de)compressors, plus several cosmetics

This commit is contained in:
UbitUmarov
2025-06-19 20:11:42 +01:00
parent 6180fe5340
commit 4b1df46f6a
14 changed files with 47 additions and 66 deletions

View File

@@ -363,11 +363,7 @@ namespace OpenSim.Services.FSAssetService
string GetSHA256Hash(byte[] data)
{
byte[] hash;
using (SHA256 sha = SHA256.Create())
hash = sha.ComputeHash(data);
return BitConverter.ToString(hash).Replace("-", String.Empty);
return Util.SHA256Hash(data);
}
public string HashToPath(string hash)