@Test public void testGetStoreSize() { assertEquals(4, new DataLayout("i386-unknown-linux").getStoreSize(I8_PTR)); assertEquals(8, new DataLayout("x86_64-unknown-linux").getStoreSize(I8_PTR)); assertEquals(8, new DataLayout("i386-unknown-linux").getStoreSize(new StructureType(I32, I16, I8))); }
public int getStoreSize(Type type) { return runTypeQuery(type, new TypeCallback<Integer>() { Integer doWithType(TargetMachine targetMachine, org.robovm.llvm.Type type) { return (int) targetMachine.getDataLayout().getTypeStoreSize(type); } }); }
DataLayout { public int getStoreSize(Type type) { return runTypeQuery(type, new TypeCallback<Integer>() { Integer doWithType(TargetMachine targetMachine, org.robovm.llvm.Type type) { return (int) targetMachine.getDataLayout().getTypeStoreSize(type); } }); } }
DataLayout { public int getStoreSize(Type type) { return runTypeQuery(type, new TypeCallback<Integer>() { Integer doWithType(TargetMachine targetMachine, org.robovm.llvm.Type type) { return (int) targetMachine.getDataLayout().getTypeStoreSize(type); } }); } DataLayout(String triple); }
DataLayout { public int getStoreSize(Type type) { return runTypeQuery(type, new TypeCallback<Integer>() { Integer doWithType(TargetMachine targetMachine, org.robovm.llvm.Type type) { return (int) targetMachine.getDataLayout().getTypeStoreSize(type); } }); } DataLayout(String triple); int getAllocSize(Type type); int getAlignment(Type type); int getStoreSize(Type type); }
DataLayout { public int getStoreSize(Type type) { return runTypeQuery(type, new TypeCallback<Integer>() { Integer doWithType(TargetMachine targetMachine, org.robovm.llvm.Type type) { return (int) targetMachine.getDataLayout().getTypeStoreSize(type); } }); } DataLayout(String triple); int getAllocSize(Type type); int getAlignment(Type type); int getStoreSize(Type type);  }