public void writeFloat(float value) { this.hdos.writeFloat(value); }
public void writeFloat(float value) { this.hdos.writeFloat(value); }
/** * Writes a <code>float</code> value, * which is comprised of four bytes, to the output stream. * It does this as if it first converts this * <code>float</code> value to an <code>int</code> * in exactly the manner of the <code>Float.floatToIntBits</code> * method and then writes the <code>int</code> * value in exactly the manner of the <code>writeInt</code> * method. The bytes written by this method * may be read by the <code>readFloat</code> * method of interface <code>DataInput</code>, * which will then return a <code>float</code> * equal to <code>v</code>. * * @param v the <code>float</code> value to be written. */ public final void writeFloat(float v) { if (DEBUG) debug(" float=" + v); ensureCapacity(4); if (this.overflowBuf != null) { this.overflowBuf.writeFloat(v); return; } this.buffer.putFloat(v); }
/** * Writes a <code>float</code> value, * which is comprised of four bytes, to the output stream. * It does this as if it first converts this * <code>float</code> value to an <code>int</code> * in exactly the manner of the <code>Float.floatToIntBits</code> * method and then writes the <code>int</code> * value in exactly the manner of the <code>writeInt</code> * method. The bytes written by this method * may be read by the <code>readFloat</code> * method of interface <code>DataInput</code>, * which will then return a <code>float</code> * equal to <code>v</code>. * * @param v the <code>float</code> value to be written. */ public final void writeFloat(float v) { // if (logger.isTraceEnabled()) logger.trace(" float={}", v); ensureCapacity(4); if (this.overflowBuf != null) { this.overflowBuf.writeFloat(v); return; } this.buffer.putFloat(v); }
bb.writeInt(drv.getConcurrencyLevel()); bb.writeInt(drv.getInitialCapacity()); bb.writeFloat(drv.getLoadFactor()); bb.write((byte)(drv.getStatisticsEnabled()?1:0)); bb.write((byte)(drv.isBucket()?1:0));
bb.writeInt(drv.getConcurrencyLevel()); bb.writeInt(drv.getInitialCapacity()); bb.writeFloat(drv.getLoadFactor()); bb.write((byte)(drv.getStatisticsEnabled()?1:0)); bb.write((byte)(drv.isBucket()?1:0));