pub fn reply(payload: &[u8]) {
    unsafe {
        ic0::msg_reply_data_append(payload.as_ptr() as u32, payload.len() as u32);
        ic0::msg_reply();
    }
}
/// Replies with the given byte array.
/// Note, currently we do not support chunkwise assembling of the response.
/// Warning if you use this with an endpoint it will cause a trap due to the
/// message trying to return multiple responses
Replies with the given byte array.
Note, currently we do not support chunkwise assembling of the response.
Warning if you use this with an endpoint it will cause a trap due to the
message trying to return multiple responses
Replies with the given byte array . Note currently we do not support chunkwise assembling of the response . Warning if you use this with an endpoint it will cause a trap due to the message trying to return multiple responses
pub fn reply(payload: &[u8]) {
    unsafe {
        ic0::msg_reply_data_append(payload.as_ptr() as u32, payload.len() as u32);
        ic0::msg_reply();
    }
}
pub fn reply ( payload : & [ u8 ] ) { unsafe { ic0 :: msg_reply_data_append ( payload . as_ptr ( ) as u32 , payload . len ( ) as u32 ) ; ic0 :: msg_reply ( ) ; } }
Replies with the given byte array.
Replies with the given byte array .
payload
&[u8]
payload
&[u8]