コード例 #1
0
 // first 8 are junk and are not used.
 public static BackgroundTextureType GetTextureType(byte[] mimb)
 => mimb == null ? default: TextureTypes.First(x => x.FileSize == mimb.Length);
コード例 #2
0
 public static BackgroundTextureType GetTextureType(IReadOnlyCollection <byte> mimBytes)
 => mimBytes == null ? default : TextureTypes.First(x => x.FileSize == mimBytes.Count);