Function anchor_spl::shmem::ret[][src]

pub fn ret<'a, 'b, 'c, 'info>(
    ctx: CpiContext<'a, 'b, 'c, 'info, Ret<'info>>,
    data: Vec<u8>
) -> ProgramResult
Expand description

ret writes the given data field to the shared memory account acting as a return value that can be used across CPI. The caleee should use this to write data into the shared memory account. The caler should use the account directly to pull out and interpret the bytes. Shared memory serialization is not specified and is up to the caller and callee.