Searched refs:sample_len (Results 1 – 2 of 2) sorted by relevance
74 let sample_len = 16; in test_sample_len() localVariable75 let sample_data = vec![0u8; sample_len + 2]; in test_sample_len()78 assert!(key.new_mask(&sample_data[..sample_len]).is_ok()); in test_sample_len()81 assert!(key.new_mask(&sample_data[..(sample_len - 1)]).is_err()); in test_sample_len()84 assert!(key.new_mask(&sample_data[..(sample_len + 1)]).is_err()); in test_sample_len()
109 pub fn sample_len(&self) -> usize { in sample_len() method