[−][src]Function xaynet_core::testutils::multipart::message
pub fn message(dict_len: usize, mask_obj_len: usize) -> Message
This is supported on crate feature
testutils
only.Create an update message with a seed dictionary of length
dict_len
and a mask object of length mask_len
. For a message
of size S
, the following must hold true:
(mask_len - 22) % 6 = 0
(dict_len - 4) % 112 = 0
S = dict_len + mask_len + 64*2 + 136