Contents

isEqualTo(const OSData *)

Tests the equality of an OSData object and the OSString instance.

Declaration

virtual bool isEqualTo(
 const OSData *aDataObject) const;

Parameters

  • aDataObject:

    An OSData object.

Return Value

true if the two objects are equivalent, false otherwise.

Overview

This function compares the bytes of the OSData object against those of the OSString, accounting for the possibility that an OSData might explicitly include a nul character as part of its total length. Thus, for example, an OSData object containing either the bytes <'u', 's', 'b', '\0'> or <'u', 's', 'b'> will compare as equal to the OSString containing "usb".

See Also

Miscellaneous