Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::compareMem ( const P6VOID pMem1,
const P6VOID pMem2,
P6SIZE  nBytes,
P6INT32 pResult 
)
pure virtual

Compares bytes in two buffers.

Parameters
pMem1[ in ] A pointer to the first buffer.
pMem2[ in ] A pointer to the second buffer.
nBytes[ in ] The number of bytes to compare.
pResult[ out ] The address of a P6INT32 in which will be returned a value indicating the relationship of the contents of the buffers. 0 is returned to signify equality, 1 is returned if pMem1 is > pMem2 and -1 is returned if pMem1 < pMem2.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpMem1, pMem2, and/or pResult is NULL. nBytes is zero