Searched refs:monsterObject (Results 1 – 2 of 2) sorted by relevance
209 val monsterObject = Monster.getRootAsMonster(fbb.dataBuffer()) in TestCreateByteVector() constant211 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() constant232 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()
253 Monster monsterObject = Monster.getRootAsMonster(fbb.dataBuffer()); in TestCreateByteVector() local255 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() local280 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 …]