Home
last modified time | relevance | path

Searched refs:monsterObject (Results 1 – 2 of 2) sorted by relevance

/external/flatbuffers/tests/
DKotlinTest.kt209 val monsterObject = Monster.getRootAsMonster(fbb.dataBuffer()) in TestCreateByteVector() constant
211 assert(monsterObject.inventory(1) == inventory[1].toUByte()) in TestCreateByteVector()
212 assert(monsterObject.inventoryLength == inventory.size) in TestCreateByteVector()
213 assert(ByteBuffer.wrap(inventory) == monsterObject.inventoryAsByteBuffer) in TestCreateByteVector()
230 val monsterObject = Monster.getRootAsMonster(fbb.dataBuffer()) in TestCreateUninitializedVector() constant
232 assert(monsterObject.inventory(1) == inventory[1].toUByte()) in TestCreateUninitializedVector()
233 assert(monsterObject.inventoryLength == inventory.size) in TestCreateUninitializedVector()
234 assert(ByteBuffer.wrap(inventory) == monsterObject.inventoryAsByteBuffer) in TestCreateUninitializedVector()
DJavaTest.java253 Monster monsterObject = Monster.getRootAsMonster(fbb.dataBuffer()); in TestCreateByteVector() local
255 TestEq(monsterObject.inventory(1), (int)inventory[1]); in TestCreateByteVector()
256 TestEq(monsterObject.inventoryLength(), inventory.length); in TestCreateByteVector()
257 ByteVector inventoryVector = monsterObject.inventoryVector(); in TestCreateByteVector()
261 TestEq(ByteBuffer.wrap(inventory), monsterObject.inventoryAsByteBuffer()); in TestCreateByteVector()
278 Monster monsterObject = Monster.getRootAsMonster(fbb.dataBuffer()); in TestCreateUninitializedVector() local
280 TestEq(monsterObject.inventory(1), (int)inventory[1]); in TestCreateUninitializedVector()
281 TestEq(monsterObject.inventoryLength(), inventory.length); in TestCreateUninitializedVector()
282 ByteVector inventoryVector = monsterObject.inventoryVector(); in TestCreateUninitializedVector()
285 TestEq(ByteBuffer.wrap(inventory), monsterObject.inventoryAsByteBuffer()); in TestCreateUninitializedVector()
[all …]