Package org.vmmagic.unboxed

Examples of org.vmmagic.unboxed.Address.toInt()


    }

    public List<Short> getVideoModeList() {
        List<Short> modes = new ArrayList<Short>();
        Address addr = address.add(14).loadAddress();
        Unsafe.debug("\nvideo mode list at address " + Integer.toHexString(addr.toInt()) + "\n");
        if (!addr.isZero()) {
            short mode = addr.loadShort();
            int counter = 0;
            while ((mode != 0xFFFF) && (counter++ < 100)) {
                modes.add(mode);
View Full Code Here


    protected AbstractStructure(ResourceManager rm, int size, int alignment) {
        this.data = new byte[size + alignment];
        this.dataRes = rm.asMemoryResource(data);
        Address ptr = dataRes.getAddress();
        int offset = 0;
        while (((offset + ptr.toInt()) & (alignment - 1)) != 0) {
            offset++;
        }
        this.offset = offset;
        this.descrAddr = dataRes.getAddress().toInt() + offset;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.