translate_slice_mut_for_cpi

Function translate_slice_mut_for_cpi 

Source
pub fn translate_slice_mut_for_cpi<'a, T>(
    memory_mapping: &MemoryMapping<'_>,
    vm_addr: u64,
    len: u64,
    check_aligned: bool,
) -> Result<&'a mut [T], Box<dyn Error>>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Expand description

CPI-specific version with intentionally different lifetime signature. This version is missing lifetime ’a of the return type in the parameter &MemoryMapping.