mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 16:19:28 +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;
|
||||
begin
|
||||
if l>sizeof(empty) then
|
||||
internalerror(200404081);
|
||||
if l>0 then
|
||||
begin
|
||||
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
|
||||
fillchar(empty,l,0);
|
||||
Write(empty,l);
|
||||
|
Loading…
Reference in New Issue
Block a user