Click or drag to resize

MemShort Function

Get a pointer to a short in a memory buffer.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION MemShort(
	pMemory AS IntPtr,
	siValue AS SHORT,
	dwCount AS DWORD
) AS IntPtr

Parameters

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