metaCast(const OSMetaClass *)
Casts this object is to the class managed by the given OSMetaClass.
Declaration
OSMetaClassBase * metaCast(
const OSMetaClass *toMeta) const;Parameters
- toMeta:
A pointer to a constant OSMetaClass for the desired target type.
Return Value
this if the object is derived from the class managed by toMeta, otherwise NULL.
Overview
It is far more convenient to use OSDynamicCast.
See Also
Miscellaneous
OSCheckTypeInstOSDynamicCastOSMemberFunctionCastOSSafeReleaseOSSafeReleaseNULLOSTypeAllocOSTypeIDOSTypeIDInstcheckTypeInstgetMetaClassgetRetainCountisEqualTometaCast(const char *)metaCast(const OSString *)metaCast(const OSSymbol *)release()release(int)retainsafeMetaCastserializetaggedRelease(const void *)taggedRelease(const void *, const int)taggedRetain