Lines Matching refs:fbb
40 var fbb = new FlatBufferBuilder(1); in CanCreateNewFlatBufferFromScratch()
42 …StringOffset[] names = { fbb.CreateString("Frodo"), fbb.CreateString("Barney"), fbb.CreateString("… in CanCreateNewFlatBufferFromScratch()
44 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
45 Monster.AddName(fbb, names[0]); in CanCreateNewFlatBufferFromScratch()
46 off[0] = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
47 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
48 Monster.AddName(fbb, names[1]); in CanCreateNewFlatBufferFromScratch()
49 off[1] = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
50 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
51 Monster.AddName(fbb, names[2]); in CanCreateNewFlatBufferFromScratch()
52 off[2] = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
53 var sortMons = Monster.CreateMySortedVectorOfTables(fbb, off); in CanCreateNewFlatBufferFromScratch()
57 var str = fbb.CreateString("MyMonster"); in CanCreateNewFlatBufferFromScratch()
58 var test1 = fbb.CreateString("test1"); in CanCreateNewFlatBufferFromScratch()
59 var test2 = fbb.CreateString("test2"); in CanCreateNewFlatBufferFromScratch()
62 Monster.StartInventoryVector(fbb, 5); in CanCreateNewFlatBufferFromScratch()
65 fbb.AddByte((byte)i); in CanCreateNewFlatBufferFromScratch()
67 var inv = fbb.EndVector(); in CanCreateNewFlatBufferFromScratch()
69 var fred = fbb.CreateString("Fred"); in CanCreateNewFlatBufferFromScratch()
70 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
71 Monster.AddName(fbb, fred); in CanCreateNewFlatBufferFromScratch()
72 var mon2 = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
74 Monster.StartTest4Vector(fbb, 2); in CanCreateNewFlatBufferFromScratch()
75 MyGame.Example.Test.CreateTest(fbb, (short)10, (sbyte)20); in CanCreateNewFlatBufferFromScratch()
76 MyGame.Example.Test.CreateTest(fbb, (short)30, (sbyte)40); in CanCreateNewFlatBufferFromScratch()
77 var test4 = fbb.EndVector(); in CanCreateNewFlatBufferFromScratch()
79 Monster.StartTestarrayofstringVector(fbb, 2); in CanCreateNewFlatBufferFromScratch()
80 fbb.AddOffset(test2.Value); in CanCreateNewFlatBufferFromScratch()
81 fbb.AddOffset(test1.Value); in CanCreateNewFlatBufferFromScratch()
82 var testArrayOfString = fbb.EndVector(); in CanCreateNewFlatBufferFromScratch()
84 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
85 Monster.AddPos(fbb, Vec3.CreateVec3(fbb, 1.0f, 2.0f, 3.0f, 3.0, in CanCreateNewFlatBufferFromScratch()
87 Monster.AddHp(fbb, (short)80); in CanCreateNewFlatBufferFromScratch()
88 Monster.AddName(fbb, str); in CanCreateNewFlatBufferFromScratch()
89 Monster.AddInventory(fbb, inv); in CanCreateNewFlatBufferFromScratch()
90 Monster.AddTestType(fbb, Any.Monster); in CanCreateNewFlatBufferFromScratch()
91 Monster.AddTest(fbb, mon2.Value); in CanCreateNewFlatBufferFromScratch()
92 Monster.AddTest4(fbb, test4); in CanCreateNewFlatBufferFromScratch()
93 Monster.AddTestarrayofstring(fbb, testArrayOfString); in CanCreateNewFlatBufferFromScratch()
94 Monster.AddTestbool(fbb, false); in CanCreateNewFlatBufferFromScratch()
95 Monster.AddTestarrayoftables(fbb, sortMons); in CanCreateNewFlatBufferFromScratch()
96 var mon = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
98 Monster.FinishMonsterBuffer(fbb, mon); in CanCreateNewFlatBufferFromScratch()
102 … using (var ms = new MemoryStream(fbb.DataBuffer.Data, fbb.DataBuffer.Position, fbb.Offset)) in CanCreateNewFlatBufferFromScratch()
109 TestBuffer(fbb.DataBuffer); in CanCreateNewFlatBufferFromScratch()
113 Monster monster = Monster.GetRootAsMonster(fbb.DataBuffer); in CanCreateNewFlatBufferFromScratch()
126 Assert.IsTrue(Monster.LookupByKey(sortMons, "Frodo", fbb.DataBuffer) != null); in CanCreateNewFlatBufferFromScratch()
127 Assert.IsTrue(Monster.LookupByKey(sortMons, "Barney", fbb.DataBuffer) != null); in CanCreateNewFlatBufferFromScratch()
128 Assert.IsTrue(Monster.LookupByKey(sortMons, "Wilma", fbb.DataBuffer)!= null); in CanCreateNewFlatBufferFromScratch()
164 TestBuffer(fbb.DataBuffer); in CanCreateNewFlatBufferFromScratch()