Function gstd::msg::load_bytes

source ·
pub fn load_bytes() -> Result<Vec<u8>>
Expand description

Get a payload of the message that is currently being processed.

This function returns the message’s payload as a byte vector.

§Examples

use gstd::msg;

#[no_mangle]
extern "C" fn handle() {
    let payload = msg::load_bytes().expect("Unable to load");
}

§See also

  • load function returns a decoded payload of a custom type.