Emul8.Peripherals.CPU.TranslationCPU.TouchHostBlock C# (CSharp) Method

TouchHostBlock() private method

private TouchHostBlock ( uint offset ) : void
offset uint
return void
        private void TouchHostBlock(uint offset)
        {
            this.NoisyLog("Trying to find the mapping for offset 0x{0:X}.", offset);
            var mapping = currentMappings.FirstOrDefault(x => x.Segment.StartingOffset <= offset && offset < x.Segment.StartingOffset + x.Segment.Size);
            if(mapping == null)
            {
                throw new InvalidOperationException(string.Format("Could not find mapped segment for offset 0x{0:X}.", offset));
            }
            mapping.Segment.Touch();
            mapping.Touched = true;
            RebuildMemoryMappings();
        }
TranslationCPU