Support 2020.2

This commit is contained in:
Perfare
2021-01-14 05:23:19 +08:00
parent e1cf36aa3c
commit 32ce032655
10 changed files with 85 additions and 29 deletions

View File

@@ -102,6 +102,11 @@ namespace AssetStudio
return ReadArray(reader.ReadBoolean, reader.ReadInt32());
}
public static byte[] ReadUInt8Array(this BinaryReader reader)
{
return reader.ReadBytes(reader.ReadInt32());
}
public static ushort[] ReadUInt16Array(this BinaryReader reader)
{
return ReadArray(reader.ReadUInt16, reader.ReadInt32());