DmitryKz
а что сложного написать самому, типа такого
Код:
var
bFound: array[0..5] of Byte=(2,1,3,4,5);
bRead: array[0..1024] of Byte;
begin
BlockRead(FromFile, bRead, SizeOf(bRead), NumRead);
result:=-1;
if NumRead< SizeOf(bFound) then exit;
for i := 0 to NumRead - 1 - SizeOf(bFound) do begin
if bRead[i]<>bFound[0] then continue;
YesFound := True;
for j := 0 to SizeOf(bFound) - 1 do
if bRead[i+j] <> bFound[j] then YesFound := False;
if YesFound then Break;
end; // for
result :=i;
а что сложного написать самому, типа такого
Код:
var
bFound: array[0..5] of Byte=(2,1,3,4,5);
bRead: array[0..1024] of Byte;
begin
BlockRead(FromFile, bRead, SizeOf(bRead), NumRead);
result:=-1;
if NumRead< SizeOf(bFound) then exit;
for i := 0 to NumRead - 1 - SizeOf(bFound) do begin
if bRead[i]<>bFound[0] then continue;
YesFound := True;
for j := 0 to SizeOf(bFound) - 1 do
if bRead[i+j] <> bFound[j] then YesFound := False;
if YesFound then Break;
end; // for
result :=i;