autoendpoint::routers::common

Function message_size_check

source
pub fn message_size_check(
    data: &[u8],
    max_data: usize,
) -> Result<(), RouterError>
Expand description

Check the data against the max data size and return an error if there is too much data.