com.github.unidbg.PointerNumber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unidbg Show documentation
Show all versions of unidbg Show documentation
Allows you to emulate an Android ARM32 and/or ARM64 native library
package com.github.unidbg;
import com.github.unidbg.pointer.UnicornPointer;
public class PointerNumber extends Number {
public final UnicornPointer value;
public PointerNumber(UnicornPointer value) {
this.value = value;
}
@Override
public int intValue() {
return this.value == null ? 0 : (int) this.value.toUIntPeer();
}
@Override
public long longValue() {
return this.value == null ? 0L : this.value.peer;
}
@Override
public float floatValue() {
throw new AbstractMethodError();
}
@Override
public double doubleValue() {
throw new AbstractMethodError();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy