Home
last modified time | relevance | path

Searched refs:create_vector (Results 1 – 6 of 6) sorted by relevance

/external/flatbuffers/samples/
Dsample_binary.rs56 let inventory = builder.create_vector(&[0u8, 1, 2, 3, 4, 5, 6, 7, 8, 9]); in main()
60 let weapons = builder.create_vector(&[sword, axe]); in main()
/external/flatbuffers/tests/rust_usage_test/benches/
Dflatbuffers_benchmarks.rs95 testarrayofstring: Some(builder.create_vector(&[s0, s1])), in create_serialized_example_with_generated_code()
96 testarrayoftables: Some(builder.create_vector(&[t0, t1, t2])), in create_serialized_example_with_generated_code()
188 builder.create_vector(v); // zero-terminated -> 100 bytes in create_byte_vector_100_naive()
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs104 testarrayofstring: Some(builder.create_vector(&[s0, s1])), in create_serialized_example_with_generated_code()
120 let inv = builder.create_vector(&[0u8, 1, 2, 3, 4]); in create_serialized_example_with_library_code()
122 let test4 = builder.create_vector(&[my_game::example::Test::new(10, 20), in create_serialized_example_with_library_code()
469 testnestedflatbuffer: Some(b1.create_vector(b0.finished_data())), in nested_flatbuffer_store()
517 let v = b.create_vector(&[s0, s1]); in vector_of_string_store_manual_build()
529 let v = b.create_vector(&[123u8, 234u8][..]); in vector_of_ubyte_store()
539 let v = b.create_vector(&[false, true, false, true][..]); in vector_of_bool_store()
549 let v = b.create_vector(&[3.14159265359f64][..]); in vector_of_f64_store()
560 …let v = b.create_vector(&[my_game::example::Test::new(127, -128), my_game::example::Test::new(3, 1… in vector_of_struct_store()
570 let v = b.create_vector(&[my_game::example::Test::new(127, -128), in vector_of_struct_store_with_type_inference()
[all …]
/external/flatbuffers/tests/rust_usage_test/bin/
Dalloc_check.rs61 testarrayofstring: Some(builder.create_vector(&[s0, s1])), in create_serialized_example_with_generated_code()
/external/flatbuffers/rust/flatbuffers/src/
Dbuilder.rs283 self.create_vector(&offsets[..]) in create_vector_of_strings()
291 …pub fn create_vector<'a: 'b, 'b, T: Push + Copy + 'b>(&'a mut self, items: &'b [T]) -> WIPOffset<V… in create_vector() method
/external/flatbuffers/docs/source/
DTutorial.md1018 let inventory = builder.create_vector(&[0u8, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
1152 let weapons = builder.create_vector(&[sword, axe]);
1276 let path = builder.create_vector(&[x, y]);
1280 // let path = builder.create_vector(&[&x, &y]);