Delphi compares whether two byte arrays are equal

From , 2 Years ago, written in Delphi (Object Pascal), viewed 220 times.
URL https://pastebin.vip/view/488e4104
  1. function ByteArraysEqual(const B1, B2: array of Byte): Boolean;
  2. var
  3.   I: Integer;
  4. begin
  5.   Result := Length(B1) = Length(B2);
  6.   if Result then
  7.   begin
  8.     for I := 0 to High(B1) do
  9.     begin
  10.       if B1[I] <> B2[I] then
  11.       begin
  12.         Result := False;
  13.         Exit;
  14.       end;
  15.     end;
  16.   end;
  17. end;
  18. //delphi/2156

Reply to "Delphi compares whether two byte arrays are equal"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website