MemCmp
(FUN)
FUNCTION MemCmp : BOOL
MemCmp compares two memory buffers.
This function compares the data at “pbyMem1” of “dwSize” bytes with the data at “pbyMem2”.
If the data is fully equal, the function returns TRUE. Otherwise the function returns FALSE.
If dwSize is 0, the function returns TRUE, as zero compared bytes are always equal.
Note, that this function (similar to memcmp in C) makes no additional checks of input parameters. The caller has to take care about the validity of pointers and sizes, passed to this function.
As the function implements no error handling, the exact count of “dwSize” bytes is compared.
- InOut:
Scope
Name
Type
Comment
Return
MemCmp
BOOL
Input
pbyMem1
POINTER TO BYTE
Pointer to memory which should be compared
pbyMem2
POINTER TO BYTE
Pointer to memory which should be compared
dwSize
DWORD
Number of bytes to compare