Click or drag to resize

Functions.MemComp Method

Compare bytes in two memory buffers.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.07
Syntax
 FUNCTION MemComp(
	pMem1 AS IntPtr,
	pMem2 AS IntPtr,
	dwCount AS DWORD
) AS LONG
View Source

Parameters

pMem1
Type: IntPtr
A pointer to the first memory buffer.
pMem2
Type: IntPtr
A pointer to the second memory buffer.
dwCount
Type: UInt32
The number of bytes to compare.

Return Value

Type: Int32
-1, 0, or 1 if the first dwCount bytes of pMem1 are less than, equal to, or greater than the first dwCount bytes of pMem2, respectively.
See Also