Function simics::api::base::conf_object::_extension_data

source ·
fn _extension_data<'a, T>(
    obj: *mut ConfObject,
    cls: *mut ConfClass,
) -> &'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 with cls
  • cls - The class that extends the class obj is an instance of

§Return value

A reference to the object’s inner data

§Context

Cell Context