com.github.unidbg.ios.struct.objc.ClassRO Maven / Gradle / Ivy
The newest version!
package com.github.unidbg.ios.struct.objc;
import com.github.unidbg.Emulator;
import com.github.unidbg.pointer.UnidbgPointer;
import com.github.unidbg.pointer.UnidbgStructure;
import com.sun.jna.Pointer;
import java.util.Arrays;
import java.util.List;
/**
* class_ro_t
*/
public abstract class ClassRO extends UnidbgStructure implements ObjcConstants {
ClassRO(Pointer p) {
super(p);
}
public int flags;
public int instanceStart;
public int instanceSize;
@Override
protected List getFieldOrder() {
return Arrays.asList("flags", "instanceStart", "instanceSize", "ivarLayout", "name", "baseMethods", "baseProtocols", "ivars", "weakIvarLayout", "baseProperties");
}
public boolean isFuture() {
return (flags & RO_FUTURE) != 0;
}
public boolean isMetaClass() {
return (flags & RO_META) != 0;
}
public abstract UnidbgPointer getNamePointer(Emulator> emulator);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy