Lines Matching refs:fbb
52 FlatBufferBuilder fbb = new FlatBufferBuilder(1); in main() local
54 … int[] names = {fbb.createString("Frodo"), fbb.createString("Barney"), fbb.createString("Wilma")}; in main()
56 Monster.startMonster(fbb); in main()
57 Monster.addName(fbb, names[0]); in main()
58 off[0] = Monster.endMonster(fbb); in main()
59 Monster.startMonster(fbb); in main()
60 Monster.addName(fbb, names[1]); in main()
61 off[1] = Monster.endMonster(fbb); in main()
62 Monster.startMonster(fbb); in main()
63 Monster.addName(fbb, names[2]); in main()
64 off[2] = Monster.endMonster(fbb); in main()
65 int sortMons = fbb.createSortedVectorOfTables(new Monster(), off); in main()
69 int str = fbb.createString("MyMonster"); in main()
71 int inv = Monster.createInventoryVector(fbb, new byte[] { 0, 1, 2, 3, 4 }); in main()
73 int fred = fbb.createString("Fred"); in main()
74 Monster.startMonster(fbb); in main()
75 Monster.addName(fbb, fred); in main()
76 int mon2 = Monster.endMonster(fbb); in main()
78 Monster.startTest4Vector(fbb, 2); in main()
79 Test.createTest(fbb, (short)10, (byte)20); in main()
80 Test.createTest(fbb, (short)30, (byte)40); in main()
81 int test4 = fbb.endVector(); in main()
83 int testArrayOfString = Monster.createTestarrayofstringVector(fbb, new int[] { in main()
84 fbb.createString("test1"), in main()
85 fbb.createString("test2") in main()
88 Monster.startMonster(fbb); in main()
89 Monster.addPos(fbb, Vec3.createVec3(fbb, 1.0f, 2.0f, 3.0f, 3.0, in main()
91 Monster.addHp(fbb, (short)80); in main()
92 Monster.addName(fbb, str); in main()
93 Monster.addInventory(fbb, inv); in main()
94 Monster.addTestType(fbb, (byte)Any.Monster); in main()
95 Monster.addTest(fbb, mon2); in main()
96 Monster.addTest4(fbb, test4); in main()
97 Monster.addTestarrayofstring(fbb, testArrayOfString); in main()
98 Monster.addTestbool(fbb, false); in main()
99 Monster.addTesthashu32Fnv1(fbb, Integer.MAX_VALUE + 1L); in main()
100 Monster.addTestarrayoftables(fbb, sortMons); in main()
101 int mon = Monster.endMonster(fbb); in main()
103 Monster.finishMonsterBuffer(fbb, mon); in main()
113 os.write(fbb.dataBuffer().array(), fbb.dataBuffer().position(), fbb.offset()); in main()
121 TestExtendedBuffer(fbb.dataBuffer()); in main()
126 TestExtendedBuffer(fbb.dataBuffer().asReadOnlyBuffer()); in main()
132 Monster monster = Monster.getRootAsMonster(fbb.dataBuffer()); in main()
145 TestEq(Monster.lookupByKey(sortMons, "Frodo", fbb.dataBuffer()).name(), "Frodo"); in main()
146 TestEq(Monster.lookupByKey(sortMons, "Barney", fbb.dataBuffer()).name(), "Barney"); in main()
147 TestEq(Monster.lookupByKey(sortMons, "Wilma", fbb.dataBuffer()).name(), "Wilma"); in main()
182 TestExtendedBuffer(fbb.dataBuffer().asReadOnlyBuffer()); in main()
265 FlatBufferBuilder fbb = new FlatBufferBuilder(1); in TestNamespaceNesting() local
267 TableInNestedNS.startTableInNestedNS(fbb); in TestNamespaceNesting()
268 TableInNestedNS.addFoo(fbb, 1234); in TestNamespaceNesting()
269 int nestedTableOff = TableInNestedNS.endTableInNestedNS(fbb); in TestNamespaceNesting()
271 TableInFirstNS.startTableInFirstNS(fbb); in TestNamespaceNesting()
272 TableInFirstNS.addFooTable(fbb, nestedTableOff); in TestNamespaceNesting()
273 int off = TableInFirstNS.endTableInFirstNS(fbb); in TestNamespaceNesting()
313 FlatBufferBuilder fbb = new FlatBufferBuilder(16); in TestCreateByteVector() local
314 int str = fbb.createString("MyMonster"); in TestCreateByteVector()
316 int vec = fbb.createByteVector(inventory); in TestCreateByteVector()
317 Monster.startMonster(fbb); in TestCreateByteVector()
318 Monster.addInventory(fbb, vec); in TestCreateByteVector()
319 Monster.addName(fbb, str); in TestCreateByteVector()
320 int monster1 = Monster.endMonster(fbb); in TestCreateByteVector()
321 Monster.finishMonsterBuffer(fbb, monster1); in TestCreateByteVector()
322 Monster monsterObject = Monster.getRootAsMonster(fbb.dataBuffer()); in TestCreateByteVector()
330 FlatBufferBuilder fbb = new FlatBufferBuilder(16); in TestCreateUninitializedVector() local
331 int str = fbb.createString("MyMonster"); in TestCreateUninitializedVector()
333 ByteBuffer bb = fbb.createUnintializedVector(1, inventory.length, 1); in TestCreateUninitializedVector()
337 int vec = fbb.endVector(); in TestCreateUninitializedVector()
338 Monster.startMonster(fbb); in TestCreateUninitializedVector()
339 Monster.addInventory(fbb, vec); in TestCreateUninitializedVector()
340 Monster.addName(fbb, str); in TestCreateUninitializedVector()
341 int monster1 = Monster.endMonster(fbb); in TestCreateUninitializedVector()
342 Monster.finishMonsterBuffer(fbb, monster1); in TestCreateUninitializedVector()
343 Monster monsterObject = Monster.getRootAsMonster(fbb.dataBuffer()); in TestCreateUninitializedVector()