All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.unidbg.PointerNumber Maven / Gradle / Ivy

There is a newer version: 0.9.8
Show newest version
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