Changeset 51 for branches/ByteArray/Devices/Storage.pas
- Timestamp:
- Nov 3, 2023, 11:15:31 AM (7 months ago)
- Location:
- branches/ByteArray
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ByteArray
- Property svn:ignore
-
old new 6 6 ByteArray.res 7 7 ByteArray.dbg 8 Storage.dat
-
- Property svn:ignore
-
branches/ByteArray/Devices/Storage.pas
r50 r51 19 19 FFile: TFileStream; 20 20 Position: Integer; 21 function ReadByte(Address: TBigInt): Byte; 21 22 function Read(Address: TBigInt; Size: TBigIntSize): TBigInt; 22 23 procedure Write(Address: TBigInt; Size: TBigIntSize; Value: TBigInt); … … 53 54 begin 54 55 FFile.Size := AValue; 56 end; 57 58 function TStorage.ReadByte(Address: TBigInt): Byte; 59 begin 60 Result := 0; 61 FFile.Position := Address; 62 FFile.Read(Result, 1); 55 63 end; 56 64
Note:
See TracChangeset
for help on using the changeset viewer.