From 8b9c334bca8f9363893d54235ec5f883c4dc5777 Mon Sep 17 00:00:00 2001 From: "WINDEV2110EVAL\\User" Date: Mon, 6 Dec 2021 12:58:02 -0800 Subject: [PATCH] Moved the ExifHeader property to after the constructor to satisfy StyleCop. --- src/ImageSharp/Formats/Png/PngDecoderCore.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ImageSharp/Formats/Png/PngDecoderCore.cs b/src/ImageSharp/Formats/Png/PngDecoderCore.cs index a08242e687..5a18826d14 100644 --- a/src/ImageSharp/Formats/Png/PngDecoderCore.cs +++ b/src/ImageSharp/Formats/Png/PngDecoderCore.cs @@ -112,12 +112,6 @@ namespace SixLabors.ImageSharp.Formats.Png /// private PngChunk? nextChunk; - /// - /// "Exif" and two zero bytes. Used for the legacy exif parsing. - /// - // This uses C# compiler's optimization to refer to the static data directly, no intermediate array allocations happen. - private static ReadOnlySpan ExifHeader => new byte[] { 0x45, 0x78, 0x69, 0x66, 0x00, 0x00 }; - /// /// Initializes a new instance of the class. /// @@ -130,6 +124,12 @@ namespace SixLabors.ImageSharp.Formats.Png this.ignoreMetadata = options.IgnoreMetadata; } + /// + /// Gets the sequence of bytes for the exif header ("Exif" ASCII and two zero bytes). Used for the legacy exif parsing. + /// + // This uses C# compiler's optimization to refer to the static data directly, no intermediate array allocations happen. + private static ReadOnlySpan ExifHeader => new byte[] { 0x45, 0x78, 0x69, 0x66, 0x00, 0x00 }; + /// public Configuration Configuration { get; }