Home
last modified time | relevance | path

Searched refs:parse_byte_array (Results 1 – 4 of 4) sorted by relevance

/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/
Dhelpers.rs18 pub(crate) fn parse_byte_array<const N: usize>(input: &[u8]) -> nom::IResult<&[u8], [u8; N]> { in parse_byte_array() function
29 assert_eq!(([1_u8, 2, 3].as_slice(), []), parse_byte_array::<0>(&[1, 2, 3]).unwrap()) in parse_empty_array()
36 parse_byte_array::<3>(&[1, 2, 3, 4, 5, 6]).unwrap() in parse_nonempty_array()
/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/extended/deserialize/section/header/
Dmod.rs23 use crate::helpers::parse_byte_array;
114 combinator::map(parse_byte_array::<{ EXTENDED_SALT_LEN }>, ExtendedV1Salt::from)(input) in parse_v1_extended_salt()
133 combinator::map(parse_byte_array::<V1_IDENTITY_TOKEN_LEN>, Self)(input) in parse()
/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/extended/
Dsalt.rs22 use crate::helpers::parse_byte_array;
57 combinator::map(parse_byte_array::<SHORT_SALT_LEN>, Self)(input) in parse()
/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/legacy/deserialize/intermediate/
Dmod.rs19 use crate::helpers::parse_byte_array;
145 combinator::map(parse_byte_array::<2>, V0Salt::from)(input) in parse_v0_salt()