Esempio n. 1
0
 public void PutInt16(int offset, Int16 value)
 {
     ms.Position = offset;
     if (BitConverter.IsLittleEndian && isBigEndian)
     {
         bw.Write(BigEndianTransfer.ToBytes(value));
     }
     else
     {
         bw.Write(value);
     }
 }
Esempio n. 2
0
 public void WriteInt64(int offset, Int64 value)
 {
     if (offset + 8 > ms.Capacity)
     {
         throw new IndexOutOfRangeException();
     }
     ms.Position = offset;
     writeOffset = offset + 8;
     if (BitConverter.IsLittleEndian && isBigEndian)
     {
         bw.Write(BigEndianTransfer.ToBytes(value));
     }
     else
     {
         bw.Write(value);
     }
 }