Java ByteBuffer Write writeFFloat(ByteBuffer buffer, float value)

Here you can find the source of writeFFloat(ByteBuffer buffer, float value)

Description

Writes a 4 byte float.

License

Apache License

Declaration

public static void writeFFloat(ByteBuffer buffer, float value) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.IOException;
import java.nio.ByteBuffer;

public class Main {
    /** Writes a 4 byte float. */
    public static void writeFFloat(ByteBuffer buffer, float value) throws IOException {
        buffer.putInt(Float.floatToIntBits(value));
    }/*from www.  j  a v  a  2  s . co  m*/
}

Related

  1. writeColorTable(ByteBuffer out, int numColors)
  2. writeDouble(ByteBuffer buffer, double d)
  3. writeDouble(double v, ByteBuffer buffer)
  4. writeEmpty(final ByteBuffer buffer, final int type)
  5. writeFakeImageData(ByteBuffer out, int lzwMinCodeSize)
  6. writeFile(ByteBuffer data, File destination)
  7. writeFile(File file, ByteBuffer bb)
  8. writeFile(File file, ByteBuffer buffer)
  9. writeFileFragment(FileChannel fc, long pos, ByteBuffer fragment)