Click or drag to resize

Functions.MemWord Method

Get a pointer to a word in a memory buffer.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.07
Syntax
 FUNCTION MemWord(
	pMemory AS IntPtr,
	wValue AS WORD,
	dwCount AS DWORD
) AS IntPtr
View Source

Parameters

pMemory
Type: IntPtr
A pointer to a buffer.
wValue
Type: UInt16
The word 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 wValue within the first dwCount bytes of pMemory. If wValue is not matched, MemWord() returns a IntPtr.Zero.
See Also