public virtual uint ReadUInt32() { uint i = m_binaryReader.ReadUInt32(); unsafe { if (m_bSwapEndian) { EndianBitConverter.SwapEndian4(&i); } } return(i); }
public virtual float ReadFloat() { UInt32 p = m_binaryReader.ReadUInt32(); float r; unsafe { if (m_bSwapEndian) { EndianBitConverter.SwapEndian4(&p); } r = *(float *)&p; } return(r); }
public override float ReadFloat() { UInt32 p = m_binaryReader.ReadUInt32(); if (m_binaryWriter != null) { m_binaryWriter.Write(p); } unsafe { if (m_bSwapEndian) { EndianBitConverter.SwapEndian4((uint *)&p); } return(*(float *)&p); } }
public override uint ReadUInt32() { uint i = m_binaryReader.ReadUInt32(); if (m_binaryWriter != null) { m_binaryWriter.Write(i); } unsafe { if (m_bSwapEndian) { EndianBitConverter.SwapEndian4(&i); } } return(i); }