Home
last modified time | relevance | path

Searched refs:safe_slice (Results 1 – 5 of 5) sorted by relevance

/external/flatbuffers/docs/source/
DRustUsage.md111 are allowed to access this memory directly by using `safe_slice` and
125 The special function `safe_slice` is implemented on Vector objects that are
133 of `safe_slice`.
/external/flatbuffers/tests/
Dmonster_test_generated.rs1190 …:ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_INVENTORY, None).map(|v| v.safe_slice()) in inventory()
1206 …fers::ForwardsUOffset<flatbuffers::Vector<Test>>>(Monster::VT_TEST4, None).map(|v| v.safe_slice() ) in test4()
1224 …ffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_TESTNESTEDFLATBUFFER, None).map(|v| v.safe_slice()) in testnestedflatbuffer()
1277 …UOffset<flatbuffers::Vector<'a, bool>>>(Monster::VT_TESTARRAYOFBOOLS, None).map(|v| v.safe_slice()) in testarrayofbools()
1297 …<flatbuffers::Vector<Ability>>>(Monster::VT_TESTARRAYOFSORTEDSTRUCT, None).map(|v| v.safe_slice() ) in testarrayofsortedstruct()
1301 …fers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_FLEX, None).map(|v| v.safe_slice()) in flex()
1305 …fers::ForwardsUOffset<flatbuffers::Vector<Test>>>(Monster::VT_TEST5, None).map(|v| v.safe_slice() ) in test5()
1888 …rs::ForwardsUOffset<flatbuffers::Vector<'a, i8>>>(TypeAliases::VT_V8, None).map(|v| v.safe_slice()) in v8()
/external/flatbuffers/rust/flatbuffers/src/
Dvector.rs79 pub fn safe_slice(self) -> &'a [T] { in safe_slice() method
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs1028 let got = <flatbuffers::Vector<$ty>>::follow(&buf[..], 0).safe_slice();
1321 let v2 = v.unwrap().safe_slice(); in table_of_byte_strings_fuzz()
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()
1945 assert_eq!(fs.self_follow(&buf[..], 0).safe_slice(), &vec![FooStruct::new(1, 2, 1027)][..]); in to_slice_of_struct_elements()
2041 …get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<u8>>>(fi2fo(0), None).unwrap().safe_slice(); in to_root_to_table_get_slot_string_multiple_types()
/external/flatbuffers/samples/
Dmonster_generated.rs283 …:ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_INVENTORY, None).map(|v| v.safe_slice()) in inventory()