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

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