Home
last modified time | relevance | path

Searched refs:self_follow (Results 1 – 2 of 2) sorted by relevance

/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs1504 assert_eq!(fs.self_follow(&buf[..], 0), x);
1864 assert_eq!(fs.self_follow(&vec[..], 1), 3); in to_u8()
1871 assert_eq!(fs.self_follow(&vec[..], 2), 1027); in to_u16()
1878 assert_eq!(fs.self_follow(&vec[..], 4), 3.14159); in to_f32()
1885 assert_eq!(off.self_follow(&vec[..], 4), "foo"); in to_string()
1892 assert_eq!(off.self_follow(&vec[..], 4).safe_slice(), &[1, 2, 3, 4][..]); in to_byte_slice()
1899 assert_eq!(off.self_follow(&vec[..], 4).safe_slice(), &[1, 2, 3, 4][..]); in to_byte_vector()
1906 assert_eq!(off.self_follow(&vec[..], 4).safe_slice(), &[1, 2, 3][..]); in to_byte_string_zero_teriminated()
1914 assert_eq!(off.self_follow(&vec[..], 4), &vec![513, 1027][..]); in to_slice_of_u16()
1921 assert_eq!(off.self_follow(&vec[..], 4).len(), 2); in to_vector_of_u16()
[all …]
/external/flatbuffers/rust/flatbuffers/src/
Dfollow.rs52 pub fn self_follow(&'a self, buf: &'a [u8], loc: usize) -> T::Inner { in self_follow() method