Lines Matching full:flatbuffers
1 // automatically generated by the FlatBuffers compiler, do not modify
12 extern crate flatbuffers;
13 use self::flatbuffers::EndianScalar;
22 extern crate flatbuffers;
23 use self::flatbuffers::EndianScalar;
37 impl<'a> flatbuffers::Follow<'a> for Color {
41 flatbuffers::read_scalar_at::<Self>(buf, loc) in follow()
45 impl flatbuffers::EndianScalar for Color {
60 impl flatbuffers::Push for Color {
64 flatbuffers::emplace_scalar::<Color>(dst, *self); in push()
98 impl<'a> flatbuffers::Follow<'a> for Equipment {
102 flatbuffers::read_scalar_at::<Self>(buf, loc) in follow()
106 impl flatbuffers::EndianScalar for Equipment {
121 impl flatbuffers::Push for Equipment {
125 flatbuffers::emplace_scalar::<Equipment>(dst, *self); in push()
155 impl flatbuffers::SafeSliceAccess for Vec3 {}
156 impl<'a> flatbuffers::Follow<'a> for Vec3 {
161 //flatbuffers::follow_cast_ref::<Vec3>(buf, loc) in follow()
164 impl<'a> flatbuffers::Follow<'a> for &'a Vec3 { impl
168 flatbuffers::follow_cast_ref::<Vec3>(buf, loc) in follow()
171 impl<'b> flatbuffers::Push for Vec3 {
181 impl<'b> flatbuffers::Push for &'b Vec3 { impl
218 pub _tab: flatbuffers::Table<'a>,
221 impl<'a> flatbuffers::Follow<'a> for Monster<'a> {
226 _tab: flatbuffers::Table { buf: buf, loc: loc }, in follow()
233 pub fn init_from_table(table: flatbuffers::Table<'a>) -> Self { in init_from_table()
240 _fbb: &'mut_bldr mut flatbuffers::FlatBufferBuilder<'bldr>, in create()
241 args: &'args MonsterArgs<'args>) -> flatbuffers::WIPOffset<Monster<'bldr>> { in create()
255 pub const VT_POS: flatbuffers::VOffsetT = 4;
256 pub const VT_MANA: flatbuffers::VOffsetT = 6;
257 pub const VT_HP: flatbuffers::VOffsetT = 8;
258 pub const VT_NAME: flatbuffers::VOffsetT = 10;
259 pub const VT_INVENTORY: flatbuffers::VOffsetT = 14;
260 pub const VT_COLOR: flatbuffers::VOffsetT = 16;
261 pub const VT_WEAPONS: flatbuffers::VOffsetT = 18;
262 pub const VT_EQUIPPED_TYPE: flatbuffers::VOffsetT = 20;
263 pub const VT_EQUIPPED: flatbuffers::VOffsetT = 22;
279 self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(Monster::VT_NAME, None) in name()
283 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_INVENTORY, … in inventory()
290 …pub fn weapons(&'a self) -> Option<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Weapon<'a>>>> { in weapons()
291 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Weap… in weapons()
298 pub fn equipped(&'a self) -> Option<flatbuffers::Table<'a>> { in equipped()
299 … self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Table<'a>>>(Monster::VT_EQUIPPED, None) in equipped()
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>>,
341 fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a>,
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()
370 …pub fn add_weapons(&mut self, weapons: flatbuffers::WIPOffset<flatbuffers::Vector<'b , flatbuffers… in add_weapons()
371 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_WEAPONS, weapons); in add_weapons()
378 pub fn add_equipped(&mut self, equipped: flatbuffers::WIPOffset<flatbuffers::UnionWIPOffset>) { in add_equipped()
379 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_EQUIPPED, equipped); in add_equipped()
382 pub fn new(_fbb: &'b mut flatbuffers::FlatBufferBuilder<'a>) -> MonsterBuilder<'a, 'b> { in new()
390 pub fn finish(self) -> flatbuffers::WIPOffset<Monster<'a>> { in finish()
392 flatbuffers::WIPOffset::new(o.value()) in finish()
400 pub _tab: flatbuffers::Table<'a>,
403 impl<'a> flatbuffers::Follow<'a> for Weapon<'a> {
408 _tab: flatbuffers::Table { buf: buf, loc: loc }, in follow()
415 pub fn init_from_table(table: flatbuffers::Table<'a>) -> Self { in init_from_table()
422 _fbb: &'mut_bldr mut flatbuffers::FlatBufferBuilder<'bldr>, in create()
423 args: &'args WeaponArgs<'args>) -> flatbuffers::WIPOffset<Weapon<'bldr>> { in create()
430 pub const VT_NAME: flatbuffers::VOffsetT = 4;
431 pub const VT_DAMAGE: flatbuffers::VOffsetT = 6;
435 self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(Weapon::VT_NAME, None) in name()
444 pub name: Option<flatbuffers::WIPOffset<&'a str>>,
457 fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a>,
458 start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
462 pub fn add_name(&mut self, name: flatbuffers::WIPOffset<&'b str>) { in add_name()
463 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Weapon::VT_NAME, name); in add_name()
470 pub fn new(_fbb: &'b mut flatbuffers::FlatBufferBuilder<'a>) -> WeaponBuilder<'a, 'b> { in new()
478 pub fn finish(self) -> flatbuffers::WIPOffset<Weapon<'a>> { in finish()
480 flatbuffers::WIPOffset::new(o.value()) in finish()
486 flatbuffers::get_root::<Monster<'a>>(buf) in get_root_as_monster()
491 flatbuffers::get_size_prefixed_root::<Monster<'a>>(buf) in get_size_prefixed_root_as_monster()
496 fbb: &'b mut flatbuffers::FlatBufferBuilder<'a>, in finish_monster_buffer()
497 root: flatbuffers::WIPOffset<Monster<'a>>) { in finish_monster_buffer()
502 …size_prefixed_monster_buffer<'a, 'b>(fbb: &'b mut flatbuffers::FlatBufferBuilder<'a>, root: flatbu… in finish_size_prefixed_monster_buffer()