Ignore:
Timestamp:
Aug 6, 2024, 10:31:16 PM (2 months ago)
Author:
chronos
Message:
  • Modified: Optimized DeviceMapper read/write handlers calls without case statement.
  • Modified: Use TInt as base data type which can be redefined to different higher integer type. For start it is Int64.
Location:
branches/ByteArray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ByteArray

    • Property svn:ignore set to
      lib
      heaptrclog.trc
      ByteArray
      ByteArray.dbg
      ByteArray.lps
      ByteArray.res
  • branches/ByteArray/Channel.pas

    r5 r9  
    44
    55uses
    6   Classes, SysUtils, BigInt;
     6  Classes, SysUtils, Int;
    77
    88type
    99  TChannel = class
    1010  type
    11     TRead = function (Address: TBigInt; DataSize: TBigIntSize): TBigInt of object;
    12     TWrite = procedure (Address: TBigInt; DataSize: TBigIntSize; Value: TBigInt) of object;
    13     TGetSize = function : TBigInt of object;
     11    TRead = function (Address: TInt; DataSize: TIntSize): TInt of object;
     12    TWrite = procedure (Address: TInt; DataSize: TIntSize; Value: TInt) of object;
     13    TGetSize = function : TInt of object;
    1414  var
    1515    Read: TRead;
    1616    Write: TWrite;
    1717    GetSize: TGetSize;
     18  end;
     19
     20  TChannelDevice = class
     21    procedure SetChannel(Channel: TChannel); virtual; abstract;
    1822  end;
    1923
Note: See TracChangeset for help on using the changeset viewer.