Examples of skip()


Examples of org.pshdl.interpreter.access.EncapsulatedAccess.skip()

      }
      case isFallingEdge: {
        final int off = f.arg1;
        final EncapsulatedAccess access = getInternal(off, arrayPos);
        arrayPos = -1;
        if (access.skip(deltaCycle, epsCycle)) {
          if (listener != null) {
            listener.skippingHandledEdge(uniqueID, access.ii, false, this);
          }
          return;
        }
View Full Code Here

Examples of org.redline_rpm.payload.CpioHeader.skip()

    }
   
    final CpioHeader trailer = new CpioHeader();
    trailer.setLast();
    total = trailer.write( compressor, total);
    trailer.skip( compressor, total);

    int length = compressor.finish( payloadkey);
    int pad = Util.difference( length, 3);
    Util.empty( compressor, ByteBuffer.allocate( pad));
    length += pad;
View Full Code Here

Examples of org.sonatype.nexus.component.services.query.MetadataQuery.skip()

    MetadataQuery query = new MetadataQuery().limit(2);

    List<TestAsset> page1 = componentStore.findAssets(TestAsset.class, query);
    assertThat(page1.size(), is(2));

    List<TestAsset> page2 = componentStore.findAssets(TestAsset.class, query.skip(2));
    assertThat(page2.size(), is(2));

    List<TestAsset> page3 = componentStore.findAssets(TestAsset.class, query.skip(4));
    assertThat(page3.size(), is(0));
  }
View Full Code Here

Examples of org.springframework.data.mongodb.core.query.Query.skip()

    Query query = new Query();
    if (!StringUtils.isEmpty(queryParam.getQuery())) {
      query.addCriteria(Criteria.where(queryParam.getQtype()).is(
          queryParam.getQuery()));
    }
    query.skip(queryParam.getSkip()).limit(queryParam.getLimit()).sort()
        .on(queryParam.getSortname(), queryParam.getSortorder());

    List<T> list = baseDao.getMongoTemplate().find(query, getBeanClass());
    List<Map<String, Object>> mapList = new LinkedList<Map<String, Object>>();
    for (T bean : list) {
View Full Code Here

Examples of org.teiid.core.util.ReaderInputStream.skip()

    }

    public InputStream getBinaryStream() throws SQLException {
      ReaderInputStream ris = new ReaderInputStream(searchstr.getCharacterStream(), Charset.forName("UTF-16")); //$NON-NLS-1$
      try {
        ris.skip(2);
        return ris;
      } catch (IOException e) {
        throw new SQLException(e);
      }
    }
View Full Code Here

Examples of org.terrier.structures.BitPostingIndexInputStream.skip()

      throw new IOException("Index not found in JobConf:" + Index.getLastIndexLoadError());
   
    final String bitPostingStructureName = job.get(BITPOSTING_STRUCTURE_KEY);
   
    final BitPostingIndexInputStream postingStream = (BitPostingIndexInputStream)index.getIndexStructureInputStream(bitPostingStructureName);
    postingStream.skip(split.getStartingEntryIndex());
    //logger.info("BitPostingIndexRecordReader for structure "+ bitPostingStructureName + " start entry "+ split.getStartingEntryIndex() + " split size " + split.getEntryCount());
    return new BitPostingIndexRecordReader(postingStream, split.getStartingEntryIndex(), split.getEntryCount());
  }
 
  /** Returns the block size of the specified file. Only recommended to overload for testing */
 
View Full Code Here

Examples of org.tmatesoft.hg.internal.InflaterDataAccess.skip()

    ida.seek(20);
    final int bufferCapacity = 10;
    ByteBuffer chunk1 = ByteBuffer.allocate(bufferCapacity);
    ida.readBytes(chunk1);
    errorCollector.assertTrue(new ByteArraySlice(testContent1, 20, bufferCapacity).equalsTo(chunk1.array()));
    ida.skip(-bufferCapacity);
    ByteBuffer chunk2 = ByteBuffer.allocate(bufferCapacity);
    ida.readBytes(chunk2);
    errorCollector.assertEquals(chunk1, chunk2);
  }
 
View Full Code Here

Examples of org.vfny.geoserver.util.requests.RewindableInputStream.skip()

         * tools. It's more efficient to consume the BOM than make
         * the reader perform extra checks. -Ac
         */
        if (hasBOM && ENCODING.equals("UTF-8")) {
           // ignore first three bytes...
            stream.skip(3);
        }

        /*
         * The specifics of `getEncodingName` work is that it always returns
         * UTF-16 with BOM as either UTF-16LE or UTF-16BE, and
View Full Code Here

Examples of org.vngx.jsch.Buffer.skip()

      // byte    boolean first_kex_packet_follows
      // uint32  0 (reserved for future extension)
      kexPacket.reset();
      kexBuffer.putByte(SSH_MSG_KEXINIT);
      random.fill(kexBuffer.getArray(), kexBuffer.getIndex(), KEX_COOKIE_LENGTH);
      kexBuffer.skip(KEX_COOKIE_LENGTH)// Move index forward
      kexBuffer.putString(_session.getConfig().getString(SessionConfig.KEX_ALGORITHMS));
      kexBuffer.putString(_session.getConfig().getString(SessionConfig.KEX_SERVER_HOST_KEY));
      kexBuffer.putString(_session.getConfig().getCiphersC2S())// Checked list of client-to-server ciphers
      kexBuffer.putString(_session.getConfig().getCiphersS2C())// Checked list of server-to-client ciphers
      kexBuffer.putString(_session.getConfig().getString(SessionConfig.KEX_MAC_C2S));
View Full Code Here

Examples of org.waveprotocol.wave.model.document.operation.Nindo.Builder.skip()

  }

  private Builder at(int location) {
    Builder b = new Builder();
    if (location > 0) {
      b.skip(location);
    }
    return b;
  }
}
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.