コード例 #1
0
 public override void Write(char[] chars, int index, int count)
 {
     if (BitConverter.IsLittleEndian)
     {
         base.Write(chars, index, count);
     }
     else
     {
         base.Write(Endianness.Reverse(chars, index, count));
     }
 }
コード例 #2
0
 public override void Write(ulong value)
 {
     if (BitConverter.IsLittleEndian)
     {
         base.Write(value);
     }
     else
     {
         base.Write(Endianness.Reverse(value));
     }
 }
コード例 #3
0
 public override void Write(char[] chars)
 {
     if (BitConverter.IsLittleEndian)
     {
         base.Write(chars);
     }
     else
     {
         base.Write(Endianness.Reverse(chars));
     }
 }
コード例 #4
0
 public override ulong ReadUInt64()
 {
     return((BitConverter.IsLittleEndian) ? base.ReadUInt64() : Endianness.Reverse(base.ReadUInt64()));
 }
コード例 #5
0
 public override string ReadString()
 {
     return((BitConverter.IsLittleEndian) ? base.ReadString() : Endianness.Reverse(base.ReadString()));
 }
コード例 #6
0
 public override ushort ReadUInt16()
 {
     return((BitConverter.IsLittleEndian) ? base.ReadUInt16() : Endianness.Reverse(base.ReadUInt16()));
 }
コード例 #7
0
 public override float ReadSingle()
 {
     return((BitConverter.IsLittleEndian) ? base.ReadSingle() : Endianness.Reverse(base.ReadSingle()));
 }
コード例 #8
0
 public override int ReadInt32()
 {
     return((BitConverter.IsLittleEndian) ? base.ReadInt32() : Endianness.Reverse(base.ReadInt32()));
 }
コード例 #9
0
 public override double ReadDouble()
 {
     return((BitConverter.IsLittleEndian) ? base.ReadDouble() : Endianness.Reverse(base.ReadDouble()));
 }
コード例 #10
0
 public override char[] ReadChars(Int32 count)
 {
     return((BitConverter.IsLittleEndian) ? base.ReadChars(count) : Endianness.Reverse(base.ReadChars(count)));
 }
コード例 #11
0
 public override char ReadChar()
 {
     return((BitConverter.IsLittleEndian) ? base.ReadChar() : Endianness.Reverse(base.ReadChar()));
 }