* Patch from Ondrej to implement SameArray

This commit is contained in:
Michaël Van Canneyt 2022-12-19 09:56:50 +01:00
parent bc17da25e1
commit 68cdd7073f

View File

@ -108,8 +108,15 @@ type
{$pop}
function SameArray(const A, B: array of Byte): Boolean;
var
I: Integer;
begin
Result := True;
Result := Length(A)=Length(B);
if not Result then
Exit;
for I := Low(A) to High(A) do
if A[I]<>B[I] then
Exit(False);
end;
const