async fn make_xnet_call(
    dst: &UniversalCanister<'_>,
    src: &UniversalCanister<'_>,
    size: usize,
) -> Result<Vec<u8>, AgentError> {
    src.update(
        wasm().inter_update(
            dst.canister_id(),
            call_args()
                // NOTE: We use reply here before stable write, since we don't actually
                // care about the write, we just want to send a large message.
                .other_side(wasm().reply().stable_write(0, &vec![0; size]))
                .on_reply(wasm().reply()),
        ),
    )
    .await
}
/// Makes a XNet call from the `src` canister to the `dst` canister with a
/// message of the specified size
Makes a XNet call from the `src` canister to the `dst` canister with a
message of the specified size
Makes a XNet call from the ` src ` canister to the ` dst ` canister with a message of the specified size
async fn make_xnet_call(
    dst: &UniversalCanister<'_>,
    src: &UniversalCanister<'_>,
    size: usize,
) -> Result<Vec<u8>, AgentError> {
    src.update(
        wasm().inter_update(
            dst.canister_id(),
            call_args()
                // NOTE: We use reply here before stable write, since we don't actually
                // care about the write, we just want to send a large message.
                .other_side(wasm().reply().stable_write(0, &vec![0; size]))
                .on_reply(wasm().reply()),
        ),
    )
    .await
}
async fn make_xnet_call ( dst : & UniversalCanister < ' _ > , src : & UniversalCanister < ' _ > , size : usize , ) -> Result < Vec < u8 > , AgentError > { src . update ( wasm ( ) . inter_update ( dst . canister_id ( ) , call_args ( ) // NOTE: We use reply here before stable write, since we don't actually // care about the write, we just want to send a large message. . other_side ( wasm ( ) . reply ( ) . stable_write ( 0 , & vec ! [ 0 size ] ) ) . on_reply ( wasm ( ) . reply ( ) ) , ) , ) . await }
Makes a XNet call from the `src` canister to the `dst` canister with a
message of the specified size
Makes a XNet call from the ` src ` canister to the ` dst ` canister with a message of the specified size
dst
&UniversalCanister<'_>
src
&UniversalCanister<'_>
size
usize
dst
&UniversalCanister<'_>
src
&UniversalCanister<'_>
size
usize