Click or drag to resize

MemInt Function

Get a pointer to a int in a memory buffer.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION MemInt(
	pMemory AS IntPtr,
	iValue AS LONG,
	dwCount AS DWORD
) AS IntPtr

Parameters

pMemory
Type: IntPtr
A pointer to a buffer.
iValue
Type: Int32
The int value to match.
dwCount
Type: UInt32
The number of bytes in the buffer to check.

Return Value

Type: IntPtr
A pointer to the first occurrence of iValue within the first dwCount bytes of pMemory. If iValue is not matched, MemInt() returns a IntPtr.Zero.
See Also