| 52 |  | implementation | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 53 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 54 |  | uses | 
 
 
 
 
 
 
 
 
 
 
 | 55 | < | SysUtils, StrUtils, Data, Functions, RawList, DatLinks; | 
 
 
 
 
 
 
 
 
 | 55 | > | SysUtils, StrUtils, Data, Functions, RawList, DatLinks, Math; | 
 
 
 
 
 
 
 
 
 
 
 | 56 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 57 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 58 |  | (* | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 559 |  | Fraw_file := TFileStream.Create(AnsiReplaceStr(FFileName, '.dat', '.raw'), | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 560 |  | fmOpenReadWrite); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 561 |  | Fraw_file.Seek(raw_info.RawAddr, soFromBeginning); | 
 
 
 
 
 
 
 
 
 
 
 | 562 | < | Fraw_file.CopyFrom(Src, raw_info.RawSize); | 
 
 
 
 
 
 
 
 
 | 562 | > | Fraw_file.CopyFrom(Src, Min(raw_info.RawSize, Src.Size)); | 
 
 
 
 
 
 
 
 
 
 
 | 563 |  | if UnloadWhenUnused then | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 564 |  | begin | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 565 |  | FRawOpened := False; |