Indy 9 | Content | Index | Reference

AnsiMemoryPos
See Also, Unit: IdGlobal
Locates the position of a string value in a memory buffer using Ansi string comparisions.

    function AnsiMemoryPos(const ASubStr: String; MemBuff: PChar; MemorySize: Integer): Integer;

Unit
IdGlobal
Parameters
const ASubStr: String
Value to locate in the buffer.
MemBuff: PChar
Memory buffer to be searched.
MemorySize: Integer
Size of the memory buffer to be searched.
Description
AnsiMemoryPos is an Integer function used to locate the string value in ASubStr in the memory buffer specifed by MemBuff and MemorySize. AnsiMemoryPos calls AnsiPosIdx to determine the return value for the function.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.