From 2fdb51569efb9efb4e539339bf0e26bedbd0b2c9 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Mon, 1 Dec 2014 15:38:56 -0500 Subject: [PATCH] Added comments and PDPEndian value for Endianness... not that anyone *actually* uses it --- .../UniversalEditor.Core/IO/Endianness.cs | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/CSharp/Libraries/UniversalEditor.Core/IO/Endianness.cs b/CSharp/Libraries/UniversalEditor.Core/IO/Endianness.cs index 58533228..aa42ded5 100644 --- a/CSharp/Libraries/UniversalEditor.Core/IO/Endianness.cs +++ b/CSharp/Libraries/UniversalEditor.Core/IO/Endianness.cs @@ -19,10 +19,26 @@ namespace UniversalEditor.IO { using System; + /// + /// Represents the order of bytes in a multi-byte value (for example, , , + /// and ). + /// public enum Endianness { - LittleEndian, - BigEndian + /// + /// The bytes are stored with the least-significant byte at the lowest address, while the following bytes are + /// stored in increasing order of significance. (0x0A0B0C0D = { 0x0D, 0x0C, 0x0B, 0x0A }) + /// + LittleEndian, + /// + /// The bytes are stored with the most-significant byte at the lowest address, while the following bytes are + /// stored in decreasing order of significance. (0x0A0B0C0D = { 0x0A, 0x0B, 0x0C, 0x0D }) + /// + BigEndian, + /// + /// Little-endian except for bytes in 32-bit values which are stored with the 16-bit halves swapped. + /// + PDPEndian } }