Function gstd::msg::size

source ·
pub fn size() -> usize
Expand description

Get the payload size of the message that is being processed.

This function returns the payload size of the current message that is being processed.

§Examples

use gstd::msg;

#[no_mangle]
extern "C" fn handle() {
    let payload_size = msg::size();
}