| 43 |
|
procedure UpdateDatFilePart(FileID, Offset, Size: Integer; Src: TStream); overload; virtual; abstract; |
| 44 |
|
procedure UpdateDatFilePart(FileID, Offset, Size: Integer; Src: Pointer); overload; |
| 45 |
|
|
| 46 |
+ |
function GetDatLinks(FileID: Integer): TDatLinkList; virtual; abstract; |
| 47 |
+ |
function GetDatLink(FileID, DatOffset: Integer): TDatLink; virtual; abstract; |
| 48 |
|
function GetRawList(FileID: Integer): TRawDataList; virtual; abstract; |
| 49 |
|
function GetRawInfo(FileID, DatOffset: Integer): TRawDataInfo; virtual; abstract; |
| 50 |
|
|
| 60 |
|
|
| 61 |
|
function AppendRawFile(LocSep: Boolean; Src: TStream): Integer; overload; virtual; |
| 62 |
|
function AppendRawFile(LocSep: Boolean; Src: TByteData): Integer; overload; |
| 63 |
< |
function AppendRawFile(LocSep: Boolean; Size: Integer; Src: Pointer): Integer; overload; |
| 63 |
> |
// function AppendRawFile(LocSep: Boolean; Size: Integer; Src: Pointer): Integer; overload; |
| 64 |
|
published |
| 65 |
|
end; |
| 66 |
|
|
| 273 |
|
data := TMemoryStream.Create; |
| 274 |
|
data.Write(Src[0], Length(Src)); |
| 275 |
|
data.Seek(0, soFromBeginning); |
| 276 |
< |
AppendRawFile(LocSep, data); |
| 276 |
> |
Result := AppendRawFile(LocSep, data); |
| 277 |
|
data.Free; |
| 278 |
|
end; |
| 279 |
< |
|
| 279 |
> |
{ |
| 280 |
|
function TDataAccess.AppendRawFile(LocSep: Boolean; Size: Integer; Src: Pointer): Integer; |
| 281 |
|
var |
| 282 |
|
data: TStream; |
| 284 |
|
data := TMemoryStream.Create; |
| 285 |
|
data.Write(Src^, Size); |
| 286 |
|
data.Seek(0, soFromBeginning); |
| 287 |
< |
AppendRawFile(LocSep, data); |
| 287 |
> |
Result := AppendRawFile(LocSep, data); |
| 288 |
|
data.Free; |
| 289 |
|
end; |
| 290 |
< |
|
| 290 |
> |
} |
| 291 |
|
|
| 292 |
|
|
| 293 |
|
procedure TDataAccess.SetDataOS(DataOS: TDataOS); |