mirror of https://github.com/SixLabors/ImageSharp
3 changed files with 14 additions and 20 deletions
@ -1,17 +0,0 @@ |
|||
// Copyright (c) Six Labors.
|
|||
// Licensed under the Six Labors Split License.
|
|||
|
|||
namespace SixLabors.ImageSharp.Formats.Icon; |
|||
|
|||
internal class IconAssert |
|||
{ |
|||
internal static int EndOfStream(int v, int length) |
|||
{ |
|||
if (v != length) |
|||
{ |
|||
throw new EndOfStreamException(); |
|||
} |
|||
|
|||
return v; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue