Java ByteBuffer Get getFloat(ByteBuffer b, int n)

Here you can find the source of getFloat(ByteBuffer b, int n)

Description

get Float

License

Apache License

Declaration

public static float[] getFloat(ByteBuffer b, int n) 

Method Source Code


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

import java.nio.ByteBuffer;

public class Main {
    public static float[] getFloat(ByteBuffer b, int n) {
        float f[] = new float[n];
        for (int k = 0; k < f.length; k++) {
            f[k] = b.getFloat();/* w  ww  .ja va 2s .  com*/
        }
        return f;
    }
}

Related

  1. getDouble(ByteBuffer buffer)
  2. getDoubleArray(ByteBuffer buffer, int numDoubles)
  3. getDoubleFromByteBuffer(ByteBuffer data)
  4. getEmptyByteBuffer()
  5. getFixedBytes(ByteBuffer buffer, int length)
  6. getFloat(ByteBuffer buffer)
  7. getFloat(ByteBuffer floatCalculator, byte[] bytes)
  8. getFromBack(ByteBuffer bb)
  9. getHashBytes(ByteBuffer bb)