Compares blocks of memory.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static bool CompareMemory(
	IntPtr buf1,
	IntPtr buf2,
	uint length
)
Visual Basic (Declaration)
Public Shared Function CompareMemory ( _
	buf1 As IntPtr, _
	buf2 As IntPtr, _
	length As UInteger _
) As Boolean
Visual C++
public:
static bool CompareMemory(
	IntPtr buf1, 
	IntPtr buf2, 
	unsigned int length
)

Parameters

buf1
Type: System..::.IntPtr
A pointer to a block of memory to compare.
buf2
Type: System..::.IntPtr
A pointer to a block of memory to compare.
length
Type: System..::.UInt32
Specifies the number of bytes to be compared.

Return Value

true, if all bytes compare as equal, false otherwise.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also