isEqualTo(const void *, unsigned int)
Tests the equality of an OSData object's contents to a C array of bytes.
Declaration
virtual bool isEqualTo(
const void *bytes,
unsigned intnumBytes) const;Parameters
- bytes:
A pointer to the bytes to compare.
- numBytes:
The number of bytes to compare.
Return Value
true if the data buffers are equal over the given length, false otherwise.
See Also
Miscellaneous
appendByteappendBytes(const OSData *)appendBytes(const void *, unsigned int)ensureCapacityfreegetBytesNoCopy()getBytesNoCopy(unsigned int, unsigned int)getCapacitygetCapacityIncrementgetLengthinitWithBytesinitWithBytesNoCopyinitWithCapacityinitWithData(const OSData *)initWithData(const OSData *, unsigned int, unsigned int)isEqualTo(const OSData *)isEqualTo(const OSMetaClassBase *)isEqualTo(const OSString *)serializesetCapacityIncrementwithByteswithBytesNoCopywithCapacitywithData(const OSData *)withData(const OSData *, unsigned int, unsigned int)