Index: src/Common/NetTopologySuite/IO/GeoTools/BigEndianBinaryReader.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/NetTopologySuite/IO/GeoTools/BigEndianBinaryReader.cs (.../BigEndianBinaryReader.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/Common/NetTopologySuite/IO/GeoTools/BigEndianBinaryReader.cs (.../BigEndianBinaryReader.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -5,45 +5,45 @@ namespace GisSharpBlog.NetTopologySuite.IO { - /// + /// /// Extends the class to allow reading of integers and doubles /// in the Big Endian format. - /// - /// - /// The BinaryReader uses Little Endian format when reading binary streams. - /// - public class BigEndianBinaryReader : BinaryReader - { - /// - /// Initializes a new instance of the BigEndianBinaryReader class + /// + /// + /// The BinaryReader uses Little Endian format when reading binary streams. + /// + public class BigEndianBinaryReader : BinaryReader + { + /// + /// Initializes a new instance of the BigEndianBinaryReader class /// based on the supplied stream and using UTF8Encoding. - /// - /// - public BigEndianBinaryReader(Stream stream) : base(stream) { } + /// + /// + public BigEndianBinaryReader(Stream stream) : base(stream) {} - /// - /// Initializes a new instance of the BigEndianBinaryReader class + /// + /// Initializes a new instance of the BigEndianBinaryReader class /// based on the supplied stream and a specific character encoding. - /// - /// - /// - public BigEndianBinaryReader(Stream input, Encoding encoding) : base(input, encoding) { } - - /// - /// Reads a 4-byte signed integer using the big-endian layout + /// + /// + /// + public BigEndianBinaryReader(Stream input, Encoding encoding) : base(input, encoding) {} + + /// + /// Reads a 4-byte signed integer using the big-endian layout /// from the current stream and advances the current position of the stream by four bytes. - /// - /// - public int ReadInt32BE() - { - // big endian - byte[] byteArray = new byte[4]; - int iBytesRead = Read(byteArray, 0, 4); - Debug.Assert(iBytesRead == 4); + /// + /// + public int ReadInt32BE() + { + // big endian + byte[] byteArray = new byte[4]; + int iBytesRead = Read(byteArray, 0, 4); + Debug.Assert(iBytesRead == 4); Array.Reverse(byteArray); return BitConverter.ToInt32(byteArray, 0); - } + } /// /// Reads a 8-byte signed double using the big-endian layout @@ -61,4 +61,4 @@ return BitConverter.ToDouble(byteArray, 0); } } -} +} \ No newline at end of file