Lines Matching refs:example
21 example "MyGame/Example" // refers to generated code packageName
147 monster1 := example.GetRootAsMonster(buf, offset)
148 monster2 := &example.Monster{}
150 for _, monster := range []*example.Monster{monster1, monster2} {
164 if got := monster.Color(); example.ColorBlue != got {
165 fail(FailString("color", example.ColorBlue, got))
173 vec := new(example.Vec3)
207 t := new(example.Test)
228 if got := monster.TestType(); example.AnyMonster != got {
229 fail(FailString("monster.TestType()", example.AnyMonster, got))
239 var monster2 example.Monster
272 var test0 example.Test
278 var test1 example.Test
318 monster := example.GetRootAsMonster(buf, offset)
393 monster = example.GetRootAsMonster(buf, offset)
405 monster = example.GetRootAsMonster(buf, offset)
1115 example.StatStart(b)
1116 example.StatAddId(b, str)
1117 example.StatAddVal(b, 12345678)
1118 example.StatAddCount(b, 12345)
1119 stat_end := example.StatEnd(b)
1122 stat := example.GetRootAsStat(b.Bytes, b.Head())
1145 example.MonsterStartInventoryVector(b, 5)
1153 example.MonsterStart(b)
1154 example.MonsterAddName(b, fred)
1155 mon2 := example.MonsterEnd(b)
1157 example.MonsterStartTest4Vector(b, 2)
1158 example.CreateTest(b, 10, 20)
1159 example.CreateTest(b, 30, 40)
1162 example.MonsterStartTestarrayofstringVector(b, 2)
1167 example.MonsterStart(b)
1169 pos := example.CreateVec3(b, 1.0, 2.0, 3.0, 3.0, 2, 5, 6)
1170 example.MonsterAddPos(b, pos)
1172 example.MonsterAddHp(b, 80)
1173 example.MonsterAddName(b, str)
1174 example.MonsterAddTestbool(b, true)
1175 example.MonsterAddInventory(b, inv)
1176 example.MonsterAddTestType(b, 1)
1177 example.MonsterAddTest(b, mon2)
1178 example.MonsterAddTest4(b, test4)
1179 example.MonsterAddTestarrayofstring(b, testArrayOfString)
1180 mon := example.MonsterEnd(b)
1191 pos := example.CreateVec3(b, 1.0, 2.0, 3.0, 3.0, 4, 5, 6)
1194 vec3 := &example.Vec3{}
1204 example.StatStart(b)
1205 example.StatAddId(b, str)
1206 example.StatAddVal(b, 12345678)
1207 example.StatAddCount(b, 12345)
1208 pos = example.StatEnd(b)
1211 stat := &example.Stat{}
1379 want := map[example.Any]string{
1380 example.AnyNONE: "NONE",
1381 example.AnyMonster: "Monster",
1382 example.AnyTestSimpleTableWithEnum: "TestSimpleTableWithEnum",
1383 example.AnyMyGame_Example2_Monster: "MyGame_Example2_Monster",
1385 got := example.EnumNamesAny
1391 want := map[example.Color]string{
1392 example.ColorRed: "Red",
1393 example.ColorGreen: "Green",
1394 example.ColorBlue: "Blue",
1396 got := example.EnumNamesColor
1406 monster := example.GetRootAsMonster(buf, off)
1415 example.MonsterStartInventoryVector(builder, 5)
1422 example.MonsterStart(builder)
1423 example.MonsterAddPos(builder, example.CreateVec3(builder, 1.0, 2.0, 3.0, 3.0, 4, 5, 6))
1424 example.MonsterAddHp(builder, 80)
1425 example.MonsterAddName(builder, str)
1426 example.MonsterAddInventory(builder, inv)
1427 example.MonsterAddTestType(builder, 1)
1430 _ = example.MonsterEnd(builder)
1459 example.MonsterStart(builder)
1460 m := example.MonsterEnd(builder)
1473 example.MonsterStart(builder)
1474 example.MonsterAddParentNamespaceTest(builder, pn)
1475 m := example.MonsterEnd(builder)
1485 m := example.GetRootAsMonster(empty, 0)
1493 m := example.GetRootAsMonster(nonempty, 0)
1710 monster := example.GetRootAsMonster(buf, offset)
1713 reuse_pos := example.Vec3{}
1714 reuse_test3 := example.Test{}
1716 reuse_monster2 := example.Monster{}
1717 reuse_test4_0 := example.Test{}
1718 reuse_test4_1 := example.Test{}
1791 example.MonsterStartInventoryVector(bldr, 5)
1799 example.MonsterStart(bldr)
1800 example.MonsterAddName(bldr, fred)
1801 mon2 := example.MonsterEnd(bldr)
1803 example.MonsterStartTest4Vector(bldr, 2)
1804 example.CreateTest(bldr, 10, 20)
1805 example.CreateTest(bldr, 30, 40)
1808 example.MonsterStartTestarrayofstringVector(bldr, 2)
1813 example.MonsterStart(bldr)
1815 pos := example.CreateVec3(bldr, 1.0, 2.0, 3.0, 3.0, 2, 5, 6)
1816 example.MonsterAddPos(bldr, pos)
1818 example.MonsterAddHp(bldr, 80)
1819 example.MonsterAddName(bldr, str)
1820 example.MonsterAddInventory(bldr, inv)
1821 example.MonsterAddTestType(bldr, 1)
1822 example.MonsterAddTest(bldr, mon2)
1823 example.MonsterAddTest4(bldr, test4)
1824 example.MonsterAddTestarrayofstring(bldr, testArrayOfString)
1825 mon := example.MonsterEnd(bldr)