diff --git a/src/ImageSharp/IO/EndianBinaryReader.cs b/src/ImageSharp/IO/EndianBinaryReader.cs index 43bb59682..dfb57924d 100644 --- a/src/ImageSharp/IO/EndianBinaryReader.cs +++ b/src/ImageSharp/IO/EndianBinaryReader.cs @@ -9,7 +9,7 @@ using System.Text; namespace SixLabors.ImageSharp.IO { /// - /// Equivalent of , but with either endianness, depending on the it is constructed with. + /// Equivalent of , but with either endianness. /// No data is buffered in the reader; the client may seek within the stream at will. /// internal class EndianBinaryReader : IDisposable @@ -46,8 +46,7 @@ namespace SixLabors.ImageSharp.IO /// /// Initializes a new instance of the class. - /// Equivalent of , but with either endianness, depending on - /// the EndianBitConverter it is constructed with. + /// Modeled after with endian support. /// /// /// Endianness to use when reading data @@ -238,7 +237,7 @@ namespace SixLabors.ImageSharp.IO /// The floating point value read public unsafe float ReadSingle() { - int intValue = ReadInt32(); + int intValue = this.ReadInt32(); return *((float*)&intValue); } @@ -255,24 +254,6 @@ namespace SixLabors.ImageSharp.IO return *((double*)&value); } - /// - /// Reads a decimal value from the stream, using the bit converter - /// for this reader. 16 bytes are read. - /// - /// The decimal value read - public unsafe decimal ReadDecimal() - { - decimal result = 0m; - int* presult = (int*)&result; - - presult[0] = this.ReadInt32(); - presult[1] = this.ReadInt32(); - presult[2] = this.ReadInt32(); - presult[3] = this.ReadInt32(); - - return result; - } - /// /// Reads a single character from the stream, using the character encoding for /// this reader. If no characters have been fully read by the time the stream ends,