public new void Write(ulong value) { if (myEndian.isBigEndian()) { base.Write(BitConverter.ToUInt64(Endian.swapEndian(BitConverter.GetBytes(value)), 0)); } else { base.Write(value); } }
public new ulong ReadUInt64() { if (myEndian.isBigEndian()) { return(BitConverter.ToUInt64(Endian.swapEndian(BitConverter.GetBytes(base.ReadUInt64())), 0)); } else { return(base.ReadUInt64()); } }
public new void Write(short value) { if (myEndian.isBigEndian()) { base.Write(BitConverter.ToInt16(Endian.swapEndian(BitConverter.GetBytes(value)), 0)); } else { base.Write(value); } }
public new int ReadInt32() { if (myEndian.isBigEndian()) { return(BitConverter.ToInt32(Endian.swapEndian(BitConverter.GetBytes(base.ReadInt32())), 0)); } else { return(base.ReadInt32()); } }