Ignore:
Timestamp:
Jul 12, 2022, 11:51:47 PM (22 months ago)
Author:
chronos
Message:
  • Modified: Execute instructions as array of instruction handlers.
  • Modified: Optimized some methods call with inline directive.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UltimatOS/UMemory.pas

    r29 r34  
    1111  TMemory = class
    1212  private
     13    FSize: Integer;
    1314    function GetSize: Integer;
    1415    procedure SetSize(AValue: Integer);
    1516  public
    1617    Data: PByte;
    17     property Size: Integer read GetSize write SetSize;
     18    property Size: Integer read FSize write SetSize;
    1819    constructor Create;
    1920    destructor Destroy; override;
     
    3233procedure TMemory.SetSize(AValue: Integer);
    3334begin
     35  if FSize = AValue then Exit;
     36  FSize := AValue;
    3437  Data := ReAllocMem(Data, AValue);
    3538end;
Note: See TracChangeset for help on using the changeset viewer.