Emul8.Peripherals.Memory.MappedMemory.ReadDoubleWord C# (CSharp) 메소드

ReadDoubleWord() 공개 메소드

public ReadDoubleWord ( long offset ) : uint
offset long
리턴 uint
        public uint ReadDoubleWord(long offset)
        {
            var localOffset = GetLocalOffset((uint)offset);			
            var segment = segments[GetSegmentNo((uint)offset)];
            if(localOffset >= SegmentSize - 3) // cross segment read
            {
                var bytes = ReadBytes(offset, 4);
                return BitConverter.ToUInt32(bytes, 0);
            }
            return unchecked((uint)Marshal.ReadInt32(segment + localOffset));
        }