Java ByteBuffer to Float toFloat(ByteBuffer bytes)

Here you can find the source of toFloat(ByteBuffer bytes)

Description

to Float

License

Apache License

Declaration

public static float toFloat(ByteBuffer bytes) 

Method Source Code

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

import java.nio.ByteBuffer;

public class Main {
    public static float toFloat(ByteBuffer bytes) {
        return bytes.getFloat(bytes.position());
    }// www . j a v a2 s.  c  o  m
}

Related

  1. readFloat(ByteBuffer buffer)
  2. readFloatArray(ByteBuffer bb, int length)
  3. readFloats(final ByteBuffer bb, final int length)
  4. toFloat(AudioFormat format, ByteBuffer buf, float[] floatBuf)
  5. toFloat(ByteBuffer buffer)
  6. toFloat(ByteBuffer value)
  7. toFloat16BE(ByteBuffer buf, FloatBuffer out)
  8. toFloat24BE(ByteBuffer buf, float[] out)