/** * Writes a double to an output stream * @param num the double to be written * @param out the output stream */ public static void writeDouble(double num, DataOutput out) throws IOException { writeLong(Double.doubleToLongBits(num), out); }
/** * Writes a double to a ByteBuffer * @param num the double to be written * @param buf the buffer */ public static void writeDouble(double num, ByteBuffer buf) { writeLong(Double.doubleToLongBits(num), buf); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); if(type == DATA) Bits.writeLong(seqno, out); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Bits.writeLong(seqno,out); out.writeShort(num_seqnos); }
public void writeTo(DataOutput out) throws Exception { Bits.writeLong(id,out); out.writeInt(frag_id); out.writeInt(num_frags); }
public void writeTo(DataOutput out) throws Exception { Bits.writeLong(id,out); out.writeInt(frag_id); out.writeInt(num_frags); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Bits.writeLong(req_id, out); out.writeShort(corrId); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Bits.writeLong(req_id, out); out.writeShort(corrId); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Bits.writeLong(seqno,out); out.writeBoolean(flush_ack); }
@Override public void writeTo(DataOutput out) throws Exception { Util.writeAddress(address, out); Bits.writeLong(id, out); }
public void writeTo(DataOutput out) throws Exception { super.writeTo(out); Bits.writeLong(initial_value, out); } }
@Override public void writeTo(DataOutput out) throws Exception { Util.writeAddress(address, out); Bits.writeLong(id, out); }
@Override public void writeTo(DataOutput out) throws Exception { out.writeByte(type); messageID.writeTo(out); Bits.writeLong(sequencerNumber, out); if (type == DATA_MESSAGE) { Util.writeAddresses(destinations, out); } }
@Override public void writeTo(DataOutput out) throws Exception { out.writeByte(type); messageID.writeTo(out); Bits.writeLong(sequencerNumber, out); if (type == DATA_MESSAGE) { Util.writeAddresses(destinations, out); } }