|
@@ -115,6 +115,9 @@ var
|
|
begin
|
|
begin
|
|
typeInfo:=aligntoptr(typeInfo+2+PByte(typeInfo)[1]);
|
|
typeInfo:=aligntoptr(typeInfo+2+PByte(typeInfo)[1]);
|
|
Count:=PArrayInfo(typeInfo)^.ElCount;
|
|
Count:=PArrayInfo(typeInfo)^.ElCount;
|
|
|
|
+ { no elements to process => exit }
|
|
|
|
+ if Count = 0 then
|
|
|
|
+ Exit;
|
|
ElSize:=PArrayInfo(typeInfo)^.Size div Count;
|
|
ElSize:=PArrayInfo(typeInfo)^.Size div Count;
|
|
Info:=PArrayInfo(typeInfo)^.ElInfo;
|
|
Info:=PArrayInfo(typeInfo)^.ElInfo;
|
|
{ Process elements }
|
|
{ Process elements }
|
|
@@ -262,6 +265,9 @@ begin
|
|
{$else}
|
|
{$else}
|
|
Result:=PArrayInfo(Temp)^.Size;
|
|
Result:=PArrayInfo(Temp)^.Size;
|
|
Count:=PArrayInfo(Temp)^.ElCount;
|
|
Count:=PArrayInfo(Temp)^.ElCount;
|
|
|
|
+ { no elements to process => exit }
|
|
|
|
+ if Count = 0 then
|
|
|
|
+ Exit;
|
|
Info:=PArrayInfo(Temp)^.ElInfo;
|
|
Info:=PArrayInfo(Temp)^.ElInfo;
|
|
copiedsize:=Result div Count;
|
|
copiedsize:=Result div Count;
|
|
Offset:=0;
|
|
Offset:=0;
|