General refactor and cleanup.

This commit is contained in:
2024-05-01 04:05:22 +01:00
parent 185a8c3fd5
commit e46d21bde6
922 changed files with 36437 additions and 29485 deletions

View File

@@ -48,8 +48,7 @@ public sealed partial class Imd
Stream stream = imageFilter.GetDataForkStream();
stream.Seek(0, SeekOrigin.Begin);
if(stream.Length < 4)
return false;
if(stream.Length < 4) return false;
var hdr = new byte[stream.Length < 256 ? stream.Length : 256];
stream.EnsureRead(hdr, 0, hdr.Length);