Home
last modified time | relevance | path

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

/external/flatbuffers/docs/source/
DRustUsage.md110 are allowed to access this memory directly by using `safe_slice` and
124 The special function `safe_slice` is implemented on Vector objects that are
132 of `safe_slice`.
/external/flatbuffers/rust/flatbuffers/src/
Dvector.rs57 pub fn safe_slice(self) -> &'a [T] { in safe_slice() method
/external/flatbuffers/tests/
Dmonster_test_generated.rs1079 …:ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_INVENTORY, None).map(|v| v.safe_slice()) in inventory()
1095 …fers::ForwardsUOffset<flatbuffers::Vector<Test>>>(Monster::VT_TEST4, None).map(|v| v.safe_slice() ) in test4()
1113 …ffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_TESTNESTEDFLATBUFFER, None).map(|v| v.safe_slice()) in testnestedflatbuffer()
1166 …UOffset<flatbuffers::Vector<'a, bool>>>(Monster::VT_TESTARRAYOFBOOLS, None).map(|v| v.safe_slice()) in testarrayofbools()
1186 …<flatbuffers::Vector<Ability>>>(Monster::VT_TESTARRAYOFSORTEDSTRUCT, None).map(|v| v.safe_slice() ) in testarrayofsortedstruct()
1190 …fers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_FLEX, None).map(|v| v.safe_slice()) in flex()
1194 …fers::ForwardsUOffset<flatbuffers::Vector<Test>>>(Monster::VT_TEST5, None).map(|v| v.safe_slice() ) in test5()
1763 …rs::ForwardsUOffset<flatbuffers::Vector<'a, i8>>>(TypeAliases::VT_V8, None).map(|v| v.safe_slice()) in v8()
/external/flatbuffers/samples/
Dmonster_generated.rs283 …:ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_INVENTORY, None).map(|v| v.safe_slice()) in inventory()
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs851 let got = <flatbuffers::Vector<$ty>>::follow(&buf[..], 0).safe_slice();
1673 assert_eq!(off.self_follow(&vec[..], 4).safe_slice(), &[1, 2, 3, 4][..]); in to_byte_vector()
1750 … assert_eq!(fs.self_follow(&buf[..], 0).safe_slice(), &vec![FooStruct{a: 1, b: 2, c: 1027}][..]); in to_slice_of_struct_elements()