Indy 9
|
function MemoryPos(const ASubStr: String; MemBuff: PChar; MemorySize: Integer): Integer;
ASubStr is the string value to be located in the memory buffer specified by the PChar MemBuff. MemoryPos searches for ASubStr within MemBuff, and returns an integer value that is the index of the first character of ASubStr within MemBuff.
MemoryPos is case-sensitive. If ASubStr is not found, MemoryPos returns zero.