Home
last modified time | relevance | path

Searched refs:WIPOffset (Results 1 – 7 of 7) sorted by relevance

/external/flatbuffers/rust/flatbuffers/src/
Dbuilder.rs129 pub fn push<P: Push>(&mut self, x: P) -> WIPOffset<P::Output> { in push()
137 WIPOffset::new(self.used_space() as UOffsetT) in push()
174 pub fn start_table(&mut self) -> WIPOffset<TableUnfinishedWIPOffset> { in start_table()
178 WIPOffset::new(self.used_space() as UOffsetT) in start_table()
185 …pub fn end_table(&mut self, off: WIPOffset<TableUnfinishedWIPOffset>) -> WIPOffset<TableFinishedWI… in end_table()
193 WIPOffset::new(o.value()) in end_table()
217 pub fn end_vector<T: Push>(&mut self, num_elems: usize) -> WIPOffset<Vector<'fbb, T>> { in end_vector()
221 WIPOffset::new(o.value()) in end_vector()
228 pub fn create_string<'a: 'b, 'b>(&'a mut self, s: &'b str) -> WIPOffset<&'fbb str> { in create_string()
230 WIPOffset::new(self.create_byte_string(s.as_bytes()).value()) in create_string()
[all …]
Dprimitives.rs79 pub struct WIPOffset<T>(UOffsetT, PhantomData<T>); struct
83 impl<T> Copy for WIPOffset<T> {} implementation
84 impl<T> Clone for WIPOffset<T> { implementation
86 fn clone(&self) -> WIPOffset<T> { in clone()
87 WIPOffset::new(self.0.clone()) in clone()
90 impl<T> PartialEq for WIPOffset<T> { implementation
91 fn eq(&self, o: &WIPOffset<T>) -> bool { in eq()
96 impl<T> Deref for WIPOffset<T> { implementation
103 impl<'a, T: 'a> WIPOffset<T> { implementation
106 pub fn new(o: UOffsetT) -> WIPOffset<T> { in new()
[all …]
/external/flatbuffers/tests/namespace_test/
Dnamespace_test2_generated.rs50 args: &'args TableInFirstNSArgs<'args>) -> flatbuffers::WIPOffset<TableInFirstNS<'bldr>> { in create()
77 pub foo_table: Option<flatbuffers::WIPOffset<namespace_b::TableInNestedNS<'a >>>,
93 start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
97 …pub fn add_foo_table(&mut self, foo_table: flatbuffers::WIPOffset<namespace_b::TableInNestedNS<'b … in add_foo_table()
98 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<namespace_b::TableInNestedNS>>(TableInFirstNS:… in add_foo_table()
117 pub fn finish(self) -> flatbuffers::WIPOffset<TableInFirstNS<'a>> { in finish()
119 flatbuffers::WIPOffset::new(o.value()) in finish()
150 args: &'args SecondTableInAArgs<'args>) -> flatbuffers::WIPOffset<SecondTableInA<'bldr>> { in create()
165 pub refer_to_c: Option<flatbuffers::WIPOffset<super::namespace_c::TableInC<'a >>>,
177 start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
[all …]
Dnamespace_test1_generated.rs183 args: &'args TableInNestedNSArgs) -> flatbuffers::WIPOffset<TableInNestedNS<'bldr>> { in create()
210 start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
226 pub fn finish(self) -> flatbuffers::WIPOffset<TableInNestedNS<'a>> { in finish()
228 flatbuffers::WIPOffset::new(o.value()) in finish()
/external/flatbuffers/tests/
Dmonster_test_generated.rs50 _args: &'args InParentNamespaceArgs) -> flatbuffers::WIPOffset<InParentNamespace<'bldr>> { in create()
68 start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
80 pub fn finish(self) -> flatbuffers::WIPOffset<InParentNamespace<'a>> { in finish()
82 flatbuffers::WIPOffset::new(o.value()) in finish()
123 _args: &'args MonsterArgs) -> flatbuffers::WIPOffset<Monster<'bldr>> { in create()
141 start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
153 pub fn finish(self) -> flatbuffers::WIPOffset<Monster<'a>> { in finish()
155 flatbuffers::WIPOffset::new(o.value()) in finish()
688 …args: &'args TestSimpleTableWithEnumArgs) -> flatbuffers::WIPOffset<TestSimpleTableWithEnum<'bldr>… in create()
715 start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
[all …]
/external/flatbuffers/samples/
Dmonster_generated.rs241 args: &'args MonsterArgs<'args>) -> flatbuffers::WIPOffset<Monster<'bldr>> { in create()
317 pub name: Option<flatbuffers::WIPOffset<&'a str>>,
318 pub inventory: Option<flatbuffers::WIPOffset<flatbuffers::Vector<'a , u8>>>,
320 …pub weapons: Option<flatbuffers::WIPOffset<flatbuffers::Vector<'a , flatbuffers::ForwardsUOffset<W…
322 pub equipped: Option<flatbuffers::WIPOffset<flatbuffers::UnionWIPOffset>>,
342 start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
358 pub fn add_name(&mut self, name: flatbuffers::WIPOffset<&'b str>) { in add_name()
359 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_NAME, name); in add_name()
362 pub fn add_inventory(&mut self, inventory: flatbuffers::WIPOffset<flatbuffers::Vector<'b , u8>>) { in add_inventory()
363 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_INVENTORY, inventory); in add_inventory()
[all …]
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs894 b.start_vector::<flatbuffers::WIPOffset<&str>>(xs.len()); in prop()
898 let vecend = b.end_vector::<flatbuffers::WIPOffset<&str>>(xs.len()); in prop()
1128 …let str_offsets: Vec<flatbuffers::WIPOffset<_>> = xs.iter().map(|s| b.create_byte_string(&s[..])).… in table_of_byte_strings_fuzz()
1162 …let str_offsets: Vec<flatbuffers::WIPOffset<_>> = xs.iter().map(|s| b.create_string(&s[..])).colle… in fuzz_table_of_strings()
1577 b.end_table(flatbuffers::WIPOffset::new(0)); in end_table_should_panic_when_not_in_table()
2341 b.push_slot_always::<flatbuffers::WIPOffset<_>>(fi2fo(1), vecend); in layout_12c_vtable_with_empty_vector_of_byte_and_some_scalars()