gstd::msg

Function 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 gcore::msg;

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