pub fn message_size_check( data: &[u8], max_data: usize, ) -> Result<(), RouterError>
Check the data against the max data size and return an error if there is too much data.