Examples of writeDouble()


Examples of com.impossibl.postgres.api.jdbc.PGSQLOutput.writeDouble()

    public void writeSQL(SQLOutput stream) throws SQLException {
      PGSQLOutput out = (PGSQLOutput) stream;
      out.writeString(str);
      out.writeString(str2);
      out.writeObject(id);
      out.writeDouble(num);
    }

  }

  static Connection conn;
View Full Code Here

Examples of com.peterhi.obsolete.Stream.writeDouble()

    try {
      Stream stream = new Stream();
      stream.writeBit(1);
     
      for (double sample : sampleDoubles()) {
        stream.writeDouble(sample);
      }
     
      stream.writeBit(1);
     
      stream.readBit();
View Full Code Here

Examples of com.stuffwithstuff.magpie.util.FileWriter.writeDouble()

  @Doc("Writes the given number to this File.")
  public static class WriteDouble implements Intrinsic {
    public Obj invoke(Context context, Obj left, Obj right) {
      FileWriter writer = (FileWriter)left.getValue();
      try {
        writer.writeDouble(right.asInt());
        return right;
      } catch (IOException e) {
        throw context.error("IOError", "Could not write.");
      }
    }
View Full Code Here

Examples of htsjdk.tribble.util.LittleEndianOutputStream.writeDouble()

        los.writeFloat(Float.MAX_VALUE);
        los.writeByte(Byte.MAX_VALUE);
        los.writeShort(Short.MAX_VALUE);
        los.writeInt(Integer.MAX_VALUE);
        los.writeLong(Long.MAX_VALUE);
        los.writeDouble(Double.MAX_VALUE);

        los.close();


    }
View Full Code Here

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

  }

  @Override
  public ByteBuf encode(ExplosionMessage message) throws IOException {
    ByteBuf buffer = Unpooled.buffer();
    buffer.writeDouble(message.getX());
    buffer.writeDouble(message.getY());
    buffer.writeDouble(message.getZ());
    buffer.writeFloat(message.getRadius());
    buffer.writeInt(message.getRecords());
    buffer.writeBytes(message.getCoordinates());
View Full Code Here

Examples of java.io.DataOutput.writeDouble()

            } else {
                dos = new LEDataOutputStream(stream);
            }

            for (int i = 0; i < array.length; i++) {
                dos.writeDouble(array[i]);
            }

            stream.close();
        } catch (IOException e) {
            throw new IllegalArgumentException("InputStream is unwritable : "
View Full Code Here

Examples of java.io.DataOutputStream.writeDouble()

        FastMultiByteArrayOutputStream out = new FastMultiByteArrayOutputStream(4096);
        DataOutputStream data = new DataOutputStream(out);
        Random rand = new Random(3333);
        for(int times = 0; times < 3; times++) {
            for(int i = 0; i < 10000; i++) {
                data.writeDouble(rand.nextGaussian());
            }
            probe(out.toByteArray_clear());
        }
    }
View Full Code Here

Examples of java.io.DataOutputStream.writeDouble()

        FastMultiByteArrayOutputStream out = new FastMultiByteArrayOutputStream(4096);
        DataOutputStream data = new DataOutputStream(out);
        Random rand = new Random(3333);
        for(int times = 0; times < 3; times++) {
            for(int i = 0; i < 10000; i++) {
                data.writeDouble(rand.nextGaussian());
            }
            probe(out.toByteArray_clear());
        }
    }
View Full Code Here

Examples of java.io.DataOutputStream.writeDouble()

    IndexIterator iterA = data.getIndexIterator();
    Class classType = data.getElementType();

    if (classType == double.class) {
      while (iterA.hasNext())
        outStream.writeDouble(iterA.getDoubleNext());

    } else if (classType == float.class) {
      while (iterA.hasNext())
        outStream.writeFloat(iterA.getFloatNext());
View Full Code Here

Examples of java.io.DataOutputStream.writeDouble()

    IndexIterator iterA = result.getIndexIterator();
    Class classType = result.getElementType();

    if (classType == double.class) {
      while (iterA.hasNext())
        outStream.writeDouble(iterA.getDoubleNext());

    } else if (classType == float.class) {
      while (iterA.hasNext())
        outStream.writeFloat(iterA.getFloatNext());
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.