Browse Source
Apply suggestions from code review
Co-authored-by: Günther Foidl <gue@korporal.at>
pull/2899/head
Poker
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
src/ImageSharp/Formats/Ani/AniDecoderCore.cs
-
src/ImageSharp/Formats/Ani/AniHeader.cs
|
|
|
@ -21,7 +21,7 @@ namespace SixLabors.ImageSharp.Formats.Ani; |
|
|
|
|
|
|
|
internal class AniDecoderCore(DecoderOptions options) : ImageDecoderCore(options) |
|
|
|
{ |
|
|
|
private enum ListIconChunkType |
|
|
|
private enum ListIconChunkType : byte |
|
|
|
{ |
|
|
|
Ico = 1, |
|
|
|
Cur = 2, |
|
|
|
|
|
|
|
@ -28,7 +28,7 @@ internal readonly struct AniHeader |
|
|
|
|
|
|
|
public static ref AniHeader Parse(ReadOnlySpan<byte> data) => ref Unsafe.As<byte, AniHeader>(ref MemoryMarshal.GetReference(data)); |
|
|
|
|
|
|
|
public void WriteTo(in Stream stream) => stream.Write(MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(in this, 1))); |
|
|
|
public void WriteTo(Stream stream) => stream.Write(MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(in this, 1))); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|