Examples of toInt()


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

        final int size = (DPD_SIZE + FRAME_SIZE) + 16 /* alignment */;
        this.data = new byte[size];
        this.mem = rm.asMemoryResource(data);

        final Address memAddr = mem.getAddress();
        int addr = memAddr.toInt();
        int offset = 0;
        // Align on 16-byte boundary
        while ((addr & 15) != 0) {
            addr++;
            offset++;
View Full Code Here

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

        this.data = new byte[size];
        this.nrFrames = nrFrames;
        this.mem = rm.asMemoryResource(data);

        final Address memAddr = mem.getAddress();
        int addr = memAddr.toInt();
        int offset = 0;
        // Align on 16-byte boundary
        while ((addr & 15) != 0) {
            addr++;
            offset++;
View Full Code Here

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

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

    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

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

        if (size.toWord().isZero()) {
            // No initial jarfile
            BootLogInstance.get().info("No initial jarfile found");
            return null;
        } else {
            BootLogInstance.get().info("Found initial jarfile of " + size.toInt() + 'b');
            try {
                final ResourceOwner owner = new SimpleResourceOwner("System");
                return rm.claimMemoryResource(owner, start, size,
                    ResourceManager.MEMMODE_NORMAL);
            } catch (ResourceNotFreeException ex) {
View Full Code Here

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

    public static void main(String[] args) {
        Word w = Word.fromInt(0x54);
        Word w2 = Word.zero();
        Word w3 = w.add(w2);
        System.out.println(w3.toInt());
    }
}
View Full Code Here

Examples of railo.commons.lang.types.RefInteger.toInt()

      _writeOutFirst(bc, (members.get(0)),mode,count==1,true,defaultValue,startIndex);
   
      // keys
      Iterator<Member> it = members.iterator();
      ArrayVisitor av=new ArrayVisitor();
      av.visitBegin(adapter,Types.COLLECTION_KEY,countDM-startIndex.toInt());
      int index=0, i=0;
        while(it.hasNext()) {
          DataMember member=(DataMember) it.next();
          if(i++<startIndex.toInt()) continue;
      av.visitBeginItem(adapter, index++);
View Full Code Here

Examples of railo.commons.lang.types.RefIntegerImpl.toInt()

      _writeOutFirst(bc, (members.get(0)),mode,count==1,true,defaultValue,startIndex);
   
      // keys
      Iterator<Member> it = members.iterator();
      ArrayVisitor av=new ArrayVisitor();
      av.visitBegin(adapter,Types.COLLECTION_KEY,countDM-startIndex.toInt());
      int index=0, i=0;
        while(it.hasNext()) {
          DataMember member=(DataMember) it.next();
          if(i++<startIndex.toInt()) continue;
      av.visitBeginItem(adapter, index++);
View Full Code Here

Examples of statechum.DeterministicDirectedSparseGraph.VertexID.toInt()

  {
    VertexID id = VertexID.parseID("P100789");
    Assert.assertEquals(VertKind.POSITIVE,id.getKind());
    Assert.assertEquals("P100789",id.toString());
    Assert.assertEquals(100789, id.getIntegerID());
    Assert.assertEquals(100789, id.toInt());
  }
 
  @Test
  public final void testParseID7()
  {
View Full Code Here

Examples of statechum.Label.toInt()

  {
    final Configuration conf = config.copy();conf.setLabelKind(LABELKIND.LABEL_STRING);
    final statechum.analysis.learning.rpnicore.Transform.InternStringLabel intern = null;
    final Label lbl = AbstractLearnerGraph.generateNewLabel("A", conf,intern);
    Helper.checkForCorrectException(new whatToRun() { public @Override void run() {
      lbl.toInt();
    }},UnsupportedOperationException.class,"string labels");
  }
 
 
  @Test
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.