mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 20:01:27 +02:00
* Allow to write tbytedynarray
This commit is contained in:
parent
58df41dcf0
commit
5e641960ac
@ -26,7 +26,7 @@ unit ppu;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
constexp,entfile;
|
globtype,constexp,entfile;
|
||||||
|
|
||||||
{ Also write the ppu if only crc if done, this can be used with ppudump to
|
{ Also write the ppu if only crc if done, this can be used with ppudump to
|
||||||
see the differences between the intf and implementation }
|
see the differences between the intf and implementation }
|
||||||
@ -167,6 +167,7 @@ type
|
|||||||
function createfile:boolean;override;
|
function createfile:boolean;override;
|
||||||
procedure writeheader;override;
|
procedure writeheader;override;
|
||||||
procedure putdata(const b;len:integer);override;
|
procedure putdata(const b;len:integer);override;
|
||||||
|
procedure putdata(b : tbytedynarray);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -522,6 +523,11 @@ begin
|
|||||||
inc(entryidx,len);*)
|
inc(entryidx,len);*)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure tppufile.putdata(b: tbytedynarray);
|
||||||
|
begin
|
||||||
|
putdata(b[0],length(b));
|
||||||
|
end;
|
||||||
|
|
||||||
function tppufile.getheadersize: longint;
|
function tppufile.getheadersize: longint;
|
||||||
begin
|
begin
|
||||||
result:=sizeof(header);
|
result:=sizeof(header);
|
||||||
|
Loading…
Reference in New Issue
Block a user