private void SplitHole(MemoryUnit hole,MemoryUnit process) { hole.StartingAddress = process.EndAddress + 1; hole.Size -= process.Size; _units.Add(process); UnitsSort(); RenderMemory(); }
/// <summary> /// Initializes a new Memory struct. /// </summary> /// <param name="size">The Size.</param> /// <param name="unit">The MemoryUnit.</param> public Memory(long size, MemoryUnit unit) : this() { _rawSize = size; _rawUnit = unit; Unit = _rawUnit; Size = _rawSize; SizeF = _rawSize; }
public MemoryUnitBlock(MemoryUnit unit) { InitializeComponent(); UnitStart.Content = unit.StartingAddress + " B"; UnitName.Content = unit.Name; UnitSize.Content = unit.Size + " B"; UnitEnd.Content = unit.EndAddress + " B"; switch (unit.Type) { case UnitType.Hole: Panel.Background = Brushes.LightGreen; break; case UnitType.Process: Panel.Background = Brushes.Orange; break; case UnitType.Reserved: Panel.Background = Brushes.Red; break; default: throw new ArgumentOutOfRangeException(); } }
/// <summary> /// Converts the Size. /// </summary> /// <param name="targetUnit">The MemoryUnit.</param> public void Convert(MemoryUnit targetUnit) { Unit = targetUnit; if (targetUnit > _rawUnit) { Size = _rawSize/((long) targetUnit/(long) _rawUnit); SizeF = _rawSize/((float) targetUnit/(float) _rawUnit); } else { Size = _rawSize*((long) targetUnit*(long) _rawUnit); SizeF = _rawSize*((float) targetUnit*(float) _rawUnit); } }
private static Mos6502State Jmp(int address, Mos6502State currentState, MemoryUnit memory) { throw new NotImplementedException(); }
public void Set(byte address, MemoryUnit memoryUnit) { ram.Set(address, memoryUnit); }
public MemoryBuilder WithCapacity(int capacity, MemoryUnit unit) { _capacity = capacity; _unit = unit; return(this); }
/// <summary> /// Returns true if OrgApacheSlingDistributionSerializationImplDistributionPackageBuProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingDistributionSerializationImplDistributionPackageBuProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingDistributionSerializationImplDistributionPackageBuProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( FormatTarget == other.FormatTarget || FormatTarget != null && FormatTarget.Equals(other.FormatTarget) ) && ( TempFsFolder == other.TempFsFolder || TempFsFolder != null && TempFsFolder.Equals(other.TempFsFolder) ) && ( FileThreshold == other.FileThreshold || FileThreshold != null && FileThreshold.Equals(other.FileThreshold) ) && ( MemoryUnit == other.MemoryUnit || MemoryUnit != null && MemoryUnit.Equals(other.MemoryUnit) ) && ( UseOffHeapMemory == other.UseOffHeapMemory || UseOffHeapMemory != null && UseOffHeapMemory.Equals(other.UseOffHeapMemory) ) && ( DigestAlgorithm == other.DigestAlgorithm || DigestAlgorithm != null && DigestAlgorithm.Equals(other.DigestAlgorithm) ) && ( MonitoringQueueSize == other.MonitoringQueueSize || MonitoringQueueSize != null && MonitoringQueueSize.Equals(other.MonitoringQueueSize) ) && ( CleanupDelay == other.CleanupDelay || CleanupDelay != null && CleanupDelay.Equals(other.CleanupDelay) ) && ( PackageFilters == other.PackageFilters || PackageFilters != null && PackageFilters.Equals(other.PackageFilters) ) && ( PropertyFilters == other.PropertyFilters || PropertyFilters != null && PropertyFilters.Equals(other.PropertyFilters) )); }