Esempio n. 1
0
 public new void Write(short value)
 {
     if (myEndian.isBigEndian())
     {
         base.Write(BitConverter.ToInt16(Endian.swapEndian(BitConverter.GetBytes(value)), 0));
     }
     else
     {
         base.Write(value);
     }
 }
Esempio n. 2
0
 public new short ReadInt16()
 {
     if (myEndian.isBigEndian())
     {
         return(BitConverter.ToInt16(Endian.swapEndian(BitConverter.GetBytes(base.ReadInt16())), 0));
     }
     else
     {
         return(base.ReadInt16());
     }
 }