Home
last modified time | relevance | path

Searched refs:fbb1 (Results 1 – 4 of 4) sorted by relevance

/external/flatbuffers/tests/FlatBuffers.Benchmarks/
DFlatBufferBuilderBenchmark.cs38 var fbb1 = new FlatBufferBuilder(16); in BuildNestedMonster()
39 var str1 = fbb1.CreateString(nestedMonsterName); in BuildNestedMonster()
40 Monster.StartMonster(fbb1); in BuildNestedMonster()
41 Monster.AddName(fbb1, str1); in BuildNestedMonster()
42 Monster.AddHp(fbb1, nestedMonsterHp); in BuildNestedMonster()
43 Monster.AddMana(fbb1, nestedMonsterMana); in BuildNestedMonster()
44 var monster1 = Monster.EndMonster(fbb1); in BuildNestedMonster()
45 Monster.FinishMonsterBuffer(fbb1, monster1); in BuildNestedMonster()
46 var fbb1Bytes = fbb1.SizedByteArray(); in BuildNestedMonster()
47 fbb1 = null; in BuildNestedMonster()
/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersExampleTests.cs302 var fbb1 = new FlatBufferBuilder(16); in TestNestedFlatBuffer()
303 var str1 = fbb1.CreateString(nestedMonsterName); in TestNestedFlatBuffer()
304 Monster.StartMonster(fbb1); in TestNestedFlatBuffer()
305 Monster.AddName(fbb1, str1); in TestNestedFlatBuffer()
306 Monster.AddHp(fbb1, nestedMonsterHp); in TestNestedFlatBuffer()
307 Monster.AddMana(fbb1, nestedMonsterMana); in TestNestedFlatBuffer()
308 var monster1 = Monster.EndMonster(fbb1); in TestNestedFlatBuffer()
309 Monster.FinishMonsterBuffer(fbb1, monster1); in TestNestedFlatBuffer()
310 var fbb1Bytes = fbb1.SizedByteArray(); in TestNestedFlatBuffer()
311 fbb1 = null; in TestNestedFlatBuffer()
/external/flatbuffers/tests/
DJavaTest.java167 FlatBufferBuilder fbb1 = new FlatBufferBuilder(16); in TestNestedFlatBuffer() local
168 int str1 = fbb1.createString(nestedMonsterName); in TestNestedFlatBuffer()
169 Monster.startMonster(fbb1); in TestNestedFlatBuffer()
170 Monster.addName(fbb1, str1); in TestNestedFlatBuffer()
171 Monster.addHp(fbb1, nestedMonsterHp); in TestNestedFlatBuffer()
172 Monster.addMana(fbb1, nestedMonsterMana); in TestNestedFlatBuffer()
173 int monster1 = Monster.endMonster(fbb1); in TestNestedFlatBuffer()
174 Monster.finishMonsterBuffer(fbb1, monster1); in TestNestedFlatBuffer()
175 byte[] fbb1Bytes = fbb1.sizedByteArray(); in TestNestedFlatBuffer()
176 fbb1 = null; in TestNestedFlatBuffer()
Dtest.cpp465 flatbuffers::FlatBufferBuilder fbb1; in ObjectFlatBuffersTest() local
466 fbb1.Finish(CreateMonster(fbb1, monster1.get(), &rehasher), in ObjectFlatBuffersTest()
470 auto monster2 = UnPackMonster(fbb1.GetBufferPointer(), &resolver); in ObjectFlatBuffersTest()
476 auto len1 = fbb1.GetSize(); in ObjectFlatBuffersTest()
479 TEST_EQ(memcmp(fbb1.GetBufferPointer(), fbb2.GetBufferPointer(), len1), 0); in ObjectFlatBuffersTest()