pub fn patterned(n: usize, pattern: &[u8]) -> Vec<u8> ⓘExpand description
n bytes of a repeating pattern.
§Example
use dev_fixtures::mock::bytes::patterned;
let bytes = patterned(7, &[0xAB, 0xCD]);
assert_eq!(bytes, vec![0xAB, 0xCD, 0xAB, 0xCD, 0xAB, 0xCD, 0xAB]);