FindInBinary
The FindInBinary function searches a bytes sequense in binary SAFEARRAY.
FindInBinary
safearray,sString,iFrom,iLength,iMax
Parameters
-
safearray
-
An array for searching in.
-
sString
-
An string to search for.
-
iFrom
-
Variable specifying the the index of first alement for the start searching.
-
iLength
-
Variable specifying the number of bytes in the array to scan.
-
iMax
-
Variable specifying the maximal number of sString sequences will be
found at array.
Return value
The function returns an array. Each element of the array contains the
position in the array where the sString occurence is found.
Remarks
The maximal availabe number of string accurences is 1024.
This function can be used for the searching any bytes sequences, for
example, accepting uploaded files.
Example
See Upload example.