Click or drag to resize

MemChr Function

Get a pointer to a byte in a memory buffer.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.01
Syntax
 FUNCTION MemChr(
	pMemory AS IntPtr,
	bChar AS BYTE,
	dwCount AS DWORD
) AS IntPtr
View Source

Parameters

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