Function simics::api::base::conf_object::extension_data
source · pub fn extension_data<'a, T>(
obj: *mut ConfObject,
cls: *mut ConfClass,
) -> Result<&'a mut T>
Expand description
Returns the private data pointer of an object associated with the extension class ext_cls. The returned pointer is the value returned by the init_object method called for the extension class ext_cls.
The object obj must be an instance of a class which has been extended with the
extension class ext_cls using the extend_class
function.
§Arguments
obj
- An instance of a class which has been extended withcls
cls
- The class that extends the classobj
is an instance of
§Return value
A reference to the object’s inner data
§Context
Cell Context