Home
last modified time | relevance | path

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

/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersExampleTests.cs249 var fbb1 = new FlatBufferBuilder(16); in TestNestedFlatBuffer()
250 var str1 = fbb1.CreateString(nestedMonsterName); in TestNestedFlatBuffer()
251 Monster.StartMonster(fbb1); in TestNestedFlatBuffer()
252 Monster.AddName(fbb1, str1); in TestNestedFlatBuffer()
253 Monster.AddHp(fbb1, nestedMonsterHp); in TestNestedFlatBuffer()
254 Monster.AddMana(fbb1, nestedMonsterMana); in TestNestedFlatBuffer()
255 var monster1 = Monster.EndMonster(fbb1); in TestNestedFlatBuffer()
256 Monster.FinishMonsterBuffer(fbb1, monster1); in TestNestedFlatBuffer()
257 var fbb1Bytes = fbb1.SizedByteArray(); in TestNestedFlatBuffer()
258 fbb1 = null; in TestNestedFlatBuffer()
/external/flatbuffers/tests/
DJavaTest.java281 FlatBufferBuilder fbb1 = new FlatBufferBuilder(16); in TestNestedFlatBuffer() local
282 int str1 = fbb1.createString(nestedMonsterName); in TestNestedFlatBuffer()
283 Monster.startMonster(fbb1); in TestNestedFlatBuffer()
284 Monster.addName(fbb1, str1); in TestNestedFlatBuffer()
285 Monster.addHp(fbb1, nestedMonsterHp); in TestNestedFlatBuffer()
286 Monster.addMana(fbb1, nestedMonsterMana); in TestNestedFlatBuffer()
287 int monster1 = Monster.endMonster(fbb1); in TestNestedFlatBuffer()
288 Monster.finishMonsterBuffer(fbb1, monster1); in TestNestedFlatBuffer()
289 byte[] fbb1Bytes = fbb1.sizedByteArray(); in TestNestedFlatBuffer()
290 fbb1 = null; in TestNestedFlatBuffer()
Dtest.cpp339 flatbuffers::FlatBufferBuilder fbb1; in ObjectFlatBuffersTest() local
340 fbb1.Finish(CreateMonster(fbb1, monster1.get(), &rehasher), in ObjectFlatBuffersTest()
344 auto monster2 = UnPackMonster(fbb1.GetBufferPointer(), &resolver); in ObjectFlatBuffersTest()
350 auto len1 = fbb1.GetSize(); in ObjectFlatBuffersTest()
353 TEST_EQ(memcmp(fbb1.GetBufferPointer(), fbb2.GetBufferPointer(), in ObjectFlatBuffersTest()