/// <summary> /// Reads <c>uint</c> from the stream. /// </summary> public unsafe uint ReadUint() { if (blockRemaining > 4) { position += 4; blockRemaining -= 4; return(BaseReader.ReadUint()); } else { uint value; ReadBytes((byte *)&value, 4); return(value); } }
/// <summary> /// Reads <c>uint</c> from the stream. /// </summary> public uint ReadUint() { byte[] buffer = MoveInternal(4); uint value; if (buffer != null) { value = BitConverter.ToUInt32(buffer, 0); } else { value = BaseReader.ReadUint(); } CheckMoveReader(); return(value); }