mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 12:09:30 +02:00
* support writing more than 1024 zeros in tobjectwriter.writezeros
git-svn-id: trunk@31379 -
This commit is contained in:
parent
fa8841d575
commit
368ba47d6e
@ -203,8 +203,17 @@ var
|
|||||||
empty : array[0..1023] of byte;
|
empty : array[0..1023] of byte;
|
||||||
begin
|
begin
|
||||||
if l>sizeof(empty) then
|
if l>sizeof(empty) then
|
||||||
internalerror(200404081);
|
begin
|
||||||
if l>0 then
|
fillchar(empty,sizeof(empty),0);
|
||||||
|
while l>sizeof(empty) do
|
||||||
|
begin
|
||||||
|
Write(empty,sizeof(empty));
|
||||||
|
Dec(l,sizeof(empty));
|
||||||
|
end;
|
||||||
|
if l>0 then
|
||||||
|
Write(empty,l);
|
||||||
|
end
|
||||||
|
else if l>0 then
|
||||||
begin
|
begin
|
||||||
fillchar(empty,l,0);
|
fillchar(empty,l,0);
|
||||||
Write(empty,l);
|
Write(empty,l);
|
||||||
|
Loading…
Reference in New Issue
Block a user