Examples of toLong()


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

        } else {
            tablePtr = VmMagic.getArrayData(proc.getIsolatedStaticsTable());
        }
    Object ret = tablePtr.loadObjectReference().toObject();
        if(sf.isStatic() && sf.isFinal() && f.getType().equals(String.class))
            ret = new IrregularStaticAccess(tablePtr.toLong());
        else
            ret = new StaticAccess(tablePtr.toLong());
        return ret;
    }
View Full Code Here

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

        }
    Object ret = tablePtr.loadObjectReference().toObject();
        if(sf.isStatic() && sf.isFinal() && f.getType().equals(String.class))
            ret = new IrregularStaticAccess(tablePtr.toLong());
        else
            ret = new StaticAccess(tablePtr.toLong());
        return ret;
    }

    /**
     * @see org.jnode.vm.VmReflection#getInstanceFieldAddress(Object, org.jnode.vm.classmgr.VmInstanceField)  
View Full Code Here

Examples of org.vmmagic.unboxed.Extent.toLong()

            h = h.getNext();
        }
        // size += (Unsafe.addressToLong(heapEnd) -
        // Unsafe.addressToLong(nextHeapPtr));
        size = size.add(Extent.fromLong(MemoryBlockManager.getFreeMemory()));
        return size.toLong();
    }

    /**
     * Gets the size of all memory in bytes.
     *
 
View Full Code Here

Examples of org.vmmagic.unboxed.UnboxedObject.toLong()

                    final Object value = jdkField.get(obj);
                    if (value == null) {
                        os.setWord(fldOffset, 0);
                    } else if (value instanceof UnboxedObject) {
                        final UnboxedObject uobj = (UnboxedObject) value;
                        os.setWord(fldOffset, uobj.toLong());
                    } else if (value instanceof Label) {
                        final Label lbl = (Label) value;
                        bis.setObjectRef(fldOffset, lbl);
                    } else {
                        throw new BuildException("Cannot handle magic type " + value.getClass().getName());
View Full Code Here

Examples of tkuri.uty.Bs.toLong()

        break; // 次のバッファを待つ
      }
      aMsgData.rest += line.length();

      if (aMsgData.state == MSG_CHUNK_SIZE) {
        int size = (int) line.toLong(16);
        aMsgData.rest += size;
        aMsgData.state = (size == 0)
            ? MSG_CHUNK_TRAILER
            : MSG_CHUNK_CRLF;
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.