mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-20 01:46:21 +00:00
Enable net analyzers and add stylecop
This commit is contained in:
27 files changed
+298
-48
No files matched your search
@@ -84,7 +84,7 @@ public class AssetBundleBenchmarks
|
||||
var length = (int) stream.Length;
|
||||
|
||||
var array = new Il2CppStructArray<byte>(length);
|
||||
if (stream.Read(array.ToSpan()) < length) throw new Exception("Failed to read in full");
|
||||
if (stream.Read(array.ToSpan()) < length) throw new IOException("Failed to read in full");
|
||||
|
||||
return LoadAll(AssetBundle.LoadFromMemory(array));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user