/// A proxy to Mark::is_descendant_of_() that can be used in plugin.
/// Origianl call site have mutable param, which we'll pass over as return value
/// via serialized MutableMarkContext.
/// Inside of guest context, once this host function returns it'll assign params
/// with return value accordingly.
A proxy to Mark::is_descendant_of_() that can be used in plugin.
Origianl call site have mutable param, which we'll pass over as return value
via serialized MutableMarkContext.
Inside of guest context, once this host function returns it'll assign params
with return value accordingly.
A proxy to Mark :: is_descendant_of_ () that can be used in plugin . Origianl call site have mutable param which we ' ll pass over as return value via serialized MutableMarkContext . Inside of guest context once this host function returns it ' ll assign params with return value accordingly .
pub fn mark_is_descendant_of_proxy(
    env: &HostEnvironment,
    self_mark: u32,
    ancestor: u32,
    allocated_ptr: i32,
) {
    let self_mark = Mark::from_u32(self_mark);
    let ancestor = Mark::from_u32(ancestor);
    let return_value = self_mark.is_descendant_of(ancestor);
    if let Some(memory) = env.memory_ref() {
        let serialized_bytes = Serialized::serialize(&MutableMarkContext(
            self_mark.as_u32(),
            0,
            return_value as u32,
        ))
        .expect("Should be serializable");
        write_into_memory_view(memory, &serialized_bytes, |_| allocated_ptr);
    }
}
pub fn mark_is_descendant_of_proxy ( env : & HostEnvironment , self_mark : u32 , ancestor : u32 , allocated_ptr : i32 , ) { let self_mark = Mark :: from_u32 ( self_mark ) ; let ancestor = Mark :: from_u32 ( ancestor ) ; let return_value = self_mark . is_descendant_of ( ancestor ) ; if let Some ( memory ) = env . memory_ref ( ) { let serialized_bytes = Serialized :: serialize ( & MutableMarkContext ( self_mark . as_u32 ( ) , 0 , return_value as u32 , ) ) . expect ( " " ) ; write_into_memory_view ( memory , & serialized_bytes , | _ | allocated_ptr ) ; } }
A proxy to Mark::is_descendant_of_() that can be used in plugin.
A proxy to Mark :: is_descendant_of_ () that can be used in plugin .
env
&HostEnvironment
self_mark
u32
ancestor
u32
allocated_ptr
i32