[][src]Function xaynet_core::testutils::multipart::update

pub fn update(dict_len: usize, mask_obj_len: usize) -> Update
This is supported on crate feature testutils only.

Create an update payload with a seed dictionary of length dict_len and a mask object of length mask_len. For a payload 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