Examples of order()


Examples of com.lightcrafts.utils.bytebuffer.LCByteBuffer.order()

        final LCByteBuffer buf = imageInfo.getByteBuffer();
        //
        // The pointer to where the JPEG starts is 84 bytes in.  The length of
        // the JPEG is 4 bytes after that.  Both are always in big-endian.
        //
        final ByteOrder origOrder = buf.order();
        buf.order( ByteOrder.BIG_ENDIAN );
        final int offset = buf.getInt( 84 );
        final int length = buf.getInt( 88 );
        buf.order( origOrder );
        return JPEGImageType.getImageFromBuffer(

Examples of com.lightcrafts.utils.file.OrderableRandomAccessFile.order()

        //
        final OrderableRandomAccessFile file =
            new OrderableRandomAccessFile( fileName, "rw" );
        try {
            if ( file.readShort() == TIFF_LITTLE_ENDIAN )
                file.order( ByteOrder.LITTLE_ENDIAN );
            file.seek( TIFF_HEADER_SIZE - TIFF_INT_SIZE );
            int ifdOffset = file.readInt();
            while ( ifdOffset > 0 ) {
                file.seek( ifdOffset );
                final int entryCount = file.readUnsignedShort();

Examples of com.nr.min.Anneal.order()

      length += anl.alen(x[iorder[i]],x[iorder[i+1]],y[iorder[i]],y[iorder[i+1]]);
    length += anl.alen(x[iorder[N-1]],x[iorder[0]],y[iorder[N-1]],y[iorder[0]]);
    linit=length;
//    System.out.printf(linit);
    for (k=0;k<M;k++) {
      anl.order(x,y,iorder);

      // Final length
      length=0;
      for (i=0;i<N-1;i++)
        length += anl.alen(x[iorder[i]],x[iorder[i+1]],y[iorder[i]],y[iorder[i+1]]);

Examples of com.sun.j3d.internal.ByteBufferWrapper.order()

/* 2292 */         d[(offset++)] = this.coordinates[i].z;
/*      */       }
/*      */
/* 2295 */       if (nio) {
/* 2296 */         ByteBufferWrapper b = ByteBufferWrapper.allocateDirect(d.length * 4);
/* 2297 */         FloatBufferWrapper f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/*      */
/* 2299 */         f.put(d);
/* 2300 */         ga.setInterleavedVertexBuffer(f.getJ3DBuffer()); } else {
/* 2301 */         ga.setInterleavedVertices(d);
/*      */       } } else if (nio)

Examples of de.danet.an.workflow.domain.TransitionDefinitionLocal.order()

        prepStmt.setLong
      (offset++, Long.parseLong(t.from().key()));
        prepStmt.setLong
      (offset++, Long.parseLong(t.to().key()));
        prepStmt.setString(offset++, td.group());
        prepStmt.setInt(offset++, td.order());
        prepStmt.setInt(offset++, td.conditionType());
        prepStmt.setString(offset++, td.condition());
    } catch (NumberFormatException re) {
        throw new SQLException(re.getMessage());
    }

Examples of edu.ucla.sspace.graph.SparseDirectedGraph.order()

            g.add(new SimpleDirectedEdge(v1, v2));
            if (lineNo % 100000 == 0)
                veryVerbose(LOGGER, "read %d lines from %s", lineNo, f);
        }
        verbose(LOGGER, "Read directed graph with %d vertices and %d edges",
                g.order(), g.size());
        return g;
    }


    @Override public DirectedMultigraph<String> readDirectedMultigraph(File f) throws IOException {

Examples of edu.ucla.sspace.graph.SparseUndirectedGraph.order()

            g.add(new SimpleEdge(v1, v2));
            if (lineNo % 100000 == 0)
                verbose(LOGGER, "Read %d lines from %s", lineNo, f);
        }
        verbose(LOGGER, "Read undirected graph with %d vertices and %d edges",
                g.order(), g.size());
        return g;
    }

    @Override public WeightedGraph<WeightedEdge> readWeighted(File f) throws IOException {
        return readWeighted(f, new HashIndexer<String>());

Examples of edu.ucla.sspace.graph.SparseWeightedGraph.order()

            if (lineNo % 10000 == 0)
                veryVerbose(LOGGER, "Read %d lines from %s", lineNo, f);
        }
        verbose(LOGGER, "Read directed graph with %d vertices and %d edges",
                g.order(), g.size());
        return g;
    }

    @Override public WeightedGraph<WeightedEdge> readWeighted(
            File f, Indexer<String> vertexIndexer, double minWeight) throws IOException {       

Examples of io.netty.buffer.ByteBuf.order()

  @Override
  public ByteBuf encode(T message) {
    byte[] bytes = message.getPayload().getBytes(CharsetUtil.US_ASCII);
    ByteBuf buffer = Unpooled.buffer(bytes.length + 2);
    buffer.order(ByteOrder.LITTLE_ENDIAN);
    buffer.writeBytes(bytes);
    buffer.writeByte(0);
    buffer.writeByte(0);
    return buffer;
  }

Examples of io.netty.buffer.ChannelBuffer.order()

                    ZlibUtil.fail(z, "compression failure", resultCode);
                }

                if (z.next_out_index != 0) {
                    result = ctx.getChannel().getConfig().getBufferFactory().getBuffer(
                            uncompressed.order(), out, 0, z.next_out_index);
                } else {
                    result = ChannelBuffers.EMPTY_BUFFER;
                }
            } finally {
                // Deference the external references explicitly to tell the VM that
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.