Examples of jump()


Examples of com.orientechnologies.orient.core.serialization.OMemoryStream.jump()

      offset = serializeKey(outBuffer, offset, i);
    }

    final OMemoryStream outStream = new OMemoryStream(outBuffer);
    try {
      outStream.jump(offset);

      for (int i = 0; i < size; ++i)
        serializedValues[i] = outStream.set(serializeStreamValue(i));

      buffer = outStream.toByteArray();
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryStream.jump()

      offset += keySerializer.getObjectSize(oldKeys[i]);
    }

    final OMemoryStream outStream = new OMemoryStream(outBuffer);
    try {
      outStream.jump(offset);

      for (int i = 0; i < oldSize; ++i)
        outStream.set(valueSerializer.toStream(oldValues[i]));

      return outStream.toByteArray();
View Full Code Here

Examples of kyotocabinet.Cursor.jump()

    @Override
    public CloseableIterator<KeyValue<T>> iterator() {
        final Cursor cursor = db.cursor();
        return new CloseableIterator<KeyValue<T>>() {

            private boolean hasNext = cursor.jump();

            @Override
            public boolean hasNext() {
                return hasNext;
            }
View Full Code Here

Examples of objot.bytecode.Instruction.jump()

          { // never happen if ctor no parameter
            s.ins0(ALOAD0);
            s.insU2(GETFIELD, fCis[i]);
            int jj = s.insJump(IFNULL);
            s.insU2(LDCW, cons.addString(c.cla.getName()));
            s.jump(s.insJump(GOTO), circle);
            s.jumpHere(jj);
          }
          s.ins0(DUP);
          s.ins0(ALOAD0);
          s.ins0(SWAP); // o, this, o
View Full Code Here

Examples of objot.bytecode.Instruction.jump()

        s.ins0(DUP);
        s.insU2(LDCW, cCis[i]);
        s.insU2(INVOKEVIRTUAL, indexCi); // n, j
        s.ins0(DUP);
        s.ins0(ISTORE2);
        s.jump(s.insJump(IFIE0), loop);
        s.ins0(ILOAD1);
        j = s.insJump(IFIL0);
        s.ins0(ILOAD2);
        s.ins0(INEG); // -j
        s.insU2(INVOKEVIRTUAL, get0Ci); // get0
View Full Code Here

Examples of objot.bytecode.Instruction.jump()

        s.ins0(DUP);
        s.insU2(LDCW, cCis[i]);
        s.insU2(INVOKEVIRTUAL, indexCi); // n, j
        s.ins0(DUP);
        s.ins0(ISTORE3);
        s.jump(s.insJump(IFIE0), loop);
        s.ins0(ILOAD3); // j
        s.ins0(ALOAD2);
        s.insU2(INVOKEVIRTUAL, set0Ci); // set
        s.ins0(IRETURN);
      }
View Full Code Here

Examples of org.nlogo.agent.Turtle.jump()

      context.ip = next;
      return;
    }
    if (distanceMagnitude <= 1.0) {
      try {
        turtle.jump(distance);
      } catch (AgentException e) { } // NOPMD
      context.ip = next;
    } else {
      int stepDistance = (distance > 0) ? 1 : -1;
      try {
View Full Code Here

Examples of org.nlogo.agent.Turtle.jump()

      } catch (AgentException e) { } // NOPMD
      context.ip = next;
    } else {
      int stepDistance = (distance > 0) ? 1 : -1;
      try {
        turtle.jump(stepDistance);
        countdown.value_$eq(countdown.value() - stepDistance);
      } catch (AgentException e) {
        context.ip = next;
      }
    }
View Full Code Here

Examples of tokyocabinet.BDBCUR.jump()

        throw new RuntimeException("Can't jump to last record");
    }else{
   
      //jump to key ahead of our input key
      if(nextKey.size() == 1){   
        if(!cursor.jump(nextKey.get(0)))
          throw new RuntimeException("Key should exist but failed to jump to it's location");       
      } else {
        if(!cursor.jump(nextKey.get(1)))
          throw new RuntimeException("Key should exist but failed to jump to it's location");
      }   
View Full Code Here

Examples of tokyocabinet.BDBCUR.jump()

      //jump to key ahead of our input key
      if(nextKey.size() == 1){   
        if(!cursor.jump(nextKey.get(0)))
          throw new RuntimeException("Key should exist but failed to jump to it's location");       
      } else {
        if(!cursor.jump(nextKey.get(1)))
          throw new RuntimeException("Key should exist but failed to jump to it's location");
      }   
    }
   
    //back one should be the input key, if it's not then the key
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.