retrieve_messages

Function retrieve_messages 

Source
pub fn retrieve_messages(
    message_struct_size: u32,
    entities: &[EntityHandle],
    out_msgs: &mut [Message],
)
Expand description

message_struct_size is the size of the module struct to sanity check size and have entities is a list of entities for which to retrieve messages. out_msgs will contain the messages of the outbox of each entity in entities after a call to this function. Use get_message_counts to retrieve the total number of msgs to allocate the right amount of space.