/external/flatbuffers/samples/ |
sample_binary.cpp | 96 // Get and test the `Equipment` union (`equipped` field). 98 auto equipped = static_cast<const Weapon *>(monster->equipped()); local 99 assert(equipped->name()->str() == "Axe"); 100 assert(equipped->damage() == 5); 101 (void)equipped;
|
SampleBinary.java | 98 // Get and test the `equipped` FlatBuffer `union`. 100 Weapon equipped = (Weapon)monster.equipped(new Weapon()); local 101 assert equipped.name().equals("Axe"); 102 assert equipped.damage() == 5;
|
sample_binary.rs | 84 equipped: Some(axe.as_union_value()), 141 // Get and test the `Equipment` union (`equipped` field). 143 let equipped = monster.equipped_as_weapon().unwrap(); 144 let weapon_name = equipped.name(); 145 let weapon_damage = equipped.damage();
|
SampleBinary.cs | 111 // Get and test the `Equipped` FlatBuffer `union`. 114 var equipped = monster.Equipped<Weapon>().Value; 115 Assert(equipped.Name.Equals("Axe", StringComparison.Ordinal), "equipped.Name", equipped.Name, 117 Assert(equipped.Damage == 5, "equipped.Damage", Convert.ToString(equipped.Damage),
|
monster_generated.h | 213 EquipmentUnion equipped; member in struct:MyGame::Sample::MonsterT 230 (lhs.equipped == rhs.equipped); 297 const void *equipped() const { function in struct:MyGame::Sample::FLATBUFFERS_FINAL_CLASS 302 return equipped_type() == Equipment_Weapon ? static_cast<const Weapon *>(equipped()) : nullptr; 322 VerifyEquipment(verifier, equipped(), equipped_type()) && 361 void add_equipped(flatbuffers::Offset<void> equipped) { 362 fbb_.AddOffset(Monster::VT_EQUIPPED, equipped); 386 flatbuffers::Offset<void> equipped = 0) { 388 builder_.add_equipped(equipped); [all...] |
samplebinary.js | 98 // Get and test the `equipped` FlatBuffer `union`. 100 assert.equal(monster.equipped(new MyGame.Sample.Weapon()).name(), 'Axe'); 101 assert.equal(monster.equipped(new MyGame.Sample.Weapon()).damage(), 5);
|
/external/flatbuffers/dart/example/ |
example.dart | 86 // Create the builder here so we can use it for both weapons and equipped 99 equipped: axe, 144 // Get and test the `Equipment` union (`equipped` field). 148 assert(monster.equipped is myGame.Weapon); 149 var equipped = monster.equipped as myGame.Weapon; 150 assert(equipped.name == "Axe"); 151 assert(equipped.damage == 5);
|
/external/flatbuffers/samples/lua/MyGame/Sample/ |
Monster.lua | 100 function Monster_mt:Equipped() 119 function Monster.AddEquipped(builder, equipped) builder:PrependUOffsetTRelativeSlot(9, equipped, 0) end
|
/external/walt/docs/ |
TapLatency.md | 6 WALT uses a ?stylus? equipped with an accelerometer. The finger is imitated by a flat metal
|