Examples of Chunk


Examples of org.terasology.world.chunks.Chunk

            }
        });
    }

    public void invalidateChunks(Vector3i pos) {
        Chunk removed = chunkCache.remove(pos);
        if (removed != null && !removed.isReady()) {
            sortedReadyChunks.remove(removed);
        }

    }
View Full Code Here

Examples of org.tmatesoft.hg.internal.FileRenameHistory.Chunk

    FileRenameHistory frh = new FileRenameHistory(originalChangesetIndex, df.getChangesetRevisionIndex(fileRevIndex));
    if (frh.isOutOfRange(df, fileRevIndex)) {
      return null;
    }
    frh.build(df, fileRevIndex);
    Chunk c = frh.chunkAt(originalChangesetIndex);
    if (c == null) {
      // file rename history doesn't go deep up to changeset of interest
      return null;
    }
    Path nameAtOrigin = c.file().getPath();
    if (originals.contains(nameAtOrigin)) {
      return nameAtOrigin;
    }
    return null;
  }
View Full Code Here

Examples of org.tmatesoft.hg.internal.FileRenameHistory.Chunk

    //
    HgDataFile df = repo.getFileNode("d");
    Assert.assertFalse(frh.isOutOfRange(df, 0));
    frh.build(df, 0);
    errorCollector.assertEquals(1, frh.chunks());
    Chunk c = frh.iterate(NewToOld).iterator().next();
    compareChunk("abandoned d(0)", c, new Object[] { "d", 0, 0, 4, 4 }, 0);
    //
    df = repo.getFileNode("a");
    Assert.assertFalse(frh.isOutOfRange(df, 0));
    frh.build(df, 0);
View Full Code Here

Examples of org.xtreemfs.babudb.pbrpc.GlobalTypes.Chunk

                return Chunk.getDefaultInstance();
            }

            @Override
            public void processRequest(Request rq) {
                Chunk req = (Chunk) rq.getRequestMessage();
                assertEquals(fileName, req.getFileName());
                assertEquals(offsetStart, req.getStart());
                assertEquals(offsetEnd, req.getEnd());
               
                rq.sendSuccess(ErrorCodeResponse.getDefaultInstance(),
                        ReusableBuffer.wrap(chunkResult.getBytes()));
            }
        });
View Full Code Here

Examples of rakama.worldtools.data.Chunk

    {
        for(int z = 1; z < span - 1; z++)
        {
            for(int x = 1; x < span - 1; x++)
            {
                Chunk chunk = localChunks[x + z * span];

                if(chunk == null)
                    continue;
               
                if(relight_skip_boundaries && relight_isBoundary(x, z, span, localChunks))
View Full Code Here

Examples of se.llbit.chunky.world.Chunk

    for (ChunkPosition pos: buffer) {
      int x = pos.x;
      int z = pos.z;

      Chunk chunk = world.getChunk(pos);

      renderer.render(chunk, buffer, x, z);
      if (highlightEnabled) {
        chunk.renderHighlight(buffer, x, z,
            hlBlock, hlColor);
      }
      if (selection.isSelected(pos)) {
        buffer.fillRectAlpha(
            view.chunkScale * (x - view.px0),
View Full Code Here

Examples of vavi.sound.smaf.chunk.Chunk

        return sequence;
    }

    /** */
    static SmafFileFormat readFrom(InputStream is) throws InvalidSmafDataException, IOException {
        Chunk chunk = Chunk.readFrom(is, null, true);
        if (FileChunk.class.isInstance(chunk)) {
            FileChunk fileChunk = FileChunk.class.cast(chunk);
            SmafFileFormat sff = new SmafFileFormat(fileChunk.getSize());
            sff.sequence = new SmafSequence(fileChunk);
            return sff;
View Full Code Here

Examples of water.fvec.Chunk

    final double[] _ds;
    long _prev, _next;
    Find( long row, double[] ds ) { _row = row; _ds = ds; _prev = -1; _next = Long.MAX_VALUE; }
    @Override public void map( Chunk cs[] ) {
      for( int col = 0; col<cs.length; col++ ) {
        Chunk C = cs[col];
        for( int row=0; row<C.len(); row++ ) {
          if( C.at0(row) == _ds[col] || (C.isNA0(row) && Double.isNaN(_ds[col])) ) {
            long r = C.start()+row;
            if( r < _row ) { if( r > _prev ) _prev = r; }
            else if( r > _row ) { if( r < _next ) _next = r; }
          }
        }
      }
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.