Changeset 41 for trunk/Packages/Common/UMemory.pas
- Timestamp:
- May 8, 2019, 11:54:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UMemory.pas
r4 r41 24 24 constructor Create; 25 25 destructor Destroy; override; 26 procedure WriteMemory(Position: Integer; Memory: TMemory); 27 procedure ReadMemory(Position: Integer; Memory: TMemory); 26 28 property Data: PByte read FData; 27 29 property Size: Integer read FSize write SetSize; … … 108 110 end; 109 111 112 procedure TMemory.WriteMemory(Position: Integer; Memory: TMemory); 113 begin 114 Move(Memory.FData, PByte(PByte(@FData) + Position)^, Memory.Size); 115 end; 116 117 procedure TMemory.ReadMemory(Position: Integer; Memory: TMemory); 118 begin 119 Move(PByte(PByte(@FData) + Position)^, Memory.FData, Memory.Size); 120 end; 121 110 122 end. 111 123
Note:
See TracChangeset
for help on using the changeset viewer.