Compares portions of two binary buffers.
BinaryCompare ( handle1, offset1, handle2, offset2, count )
(i) handle1: handle of first buffer.
(i) offset1: zero-based offset into the first buffer specifying where the data to be compared starts.
(i) handle2: handle of second buffer.
(i) offset2: zero-based offset into the second buffer specifying where the data to be compared starts.
(i) count: the number of bytes to compare.
(i) @TRUE if the sections are identical; @FALSE otherwise.
The specified sections of the buffers are compared on a byte-by-byte basis. This function is case-sensitive.
"handle1" and "handle2" may both reference the same buffer, in which case two sections of the buffer can be compared.
buf1 = BinaryAlloc(10) buf2 = BinaryAlloc(10) BinaryPokeStr(buf1, 0, "Hello") BinaryPokeStr(buf2, 0, "Hello") rc = BinaryCompare(buf1, 0, buf2, 0, 4) Message("BinaryCompare returned", rc)
Binary Operations, BinaryAlloc, BinaryCopy, BinaryFree, BinaryRead, DllCall