pub struct Class { /* private fields */ }
unity
only.Expand description
A .NET class that is part of an Image
.
Implementations§
Source§impl Class
impl Class
Sourcepub fn get_field_offset(
&self,
process: &Process,
module: &Module,
field_name: &str,
) -> Option<u32>
pub fn get_field_offset( &self, process: &Process, module: &Module, field_name: &str, ) -> Option<u32>
Tries to find a field with the specified name in the class. This returns the offset of the field from the start of an instance of the class. If it’s a static field, the offset will be from the start of the static table.
Sourcepub async fn wait_get_static_instance(
&self,
process: &Process,
module: &Module,
field_name: &str,
) -> Address
pub async fn wait_get_static_instance( &self, process: &Process, module: &Module, field_name: &str, ) -> Address
Tries to find the address of a static instance of the class based on its field name. This waits until the field is not null.
Sourcepub fn get_static_table(
&self,
process: &Process,
module: &Module,
) -> Option<Address>
pub fn get_static_table( &self, process: &Process, module: &Module, ) -> Option<Address>
Returns the address of the static table of the class. This contains the values of all the static fields.
Sourcepub fn get_parent(&self, process: &Process, module: &Module) -> Option<Class>
pub fn get_parent(&self, process: &Process, module: &Module) -> Option<Class>
Tries to find the parent class.
Sourcepub async fn wait_get_field_offset(
&self,
process: &Process,
module: &Module,
name: &str,
) -> u32
pub async fn wait_get_field_offset( &self, process: &Process, module: &Module, name: &str, ) -> u32
Tries to find a field with the specified name in the class. This returns
the offset of the field from the start of an instance of the class. If
it’s a static field, the offset will be from the start of the static
table. This is the await
able version of the
get_field_offset
function.
Sourcepub async fn wait_get_static_table(
&self,
process: &Process,
module: &Module,
) -> Address
pub async fn wait_get_static_table( &self, process: &Process, module: &Module, ) -> Address
Returns the address of the static table of the class. This contains the
values of all the static fields. This is the await
able version of the
get_static_table
function.
Sourcepub async fn wait_get_parent(&self, process: &Process, module: &Module) -> Class
pub async fn wait_get_parent(&self, process: &Process, module: &Module) -> Class
Tries to find the parent class. This is the await
able version of the
get_parent
function.