Android FloatBuffer Create newFloatBuffer(int paramInt)

Here you can find the source of newFloatBuffer(int paramInt)

Description

new Float Buffer

Declaration

public static FloatBuffer newFloatBuffer(int paramInt) 

Method Source Code

//package com.java2s;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;

import java.nio.FloatBuffer;

public class Main {
    public static FloatBuffer newFloatBuffer(int paramInt) {
        ByteBuffer localByteBuffer = newByteBuffer(paramInt * 4);
        return localByteBuffer.asFloatBuffer();
    }//  www  .  ja v a  2s  .  com

    public static ByteBuffer newByteBuffer(int paramInt) {
        ByteBuffer localByteBuffer = ByteBuffer.allocateDirect(paramInt);
        localByteBuffer.order(ByteOrder.nativeOrder());
        return localByteBuffer;
    }
}

Related

  1. makeFloatBuffer(float[] arr)
  2. makeFloatBuffer(float[] arr)
  3. makeFloatBuffer(int size)
  4. newFloatBuffer(int numFloats)
  5. newFloatBuffer(int numFloats)
  6. toFloatBuffer(float[] array)
  7. arr2FloatBuffer(float [] arr)
  8. arr2FloatBuffer(float[] coords)
  9. floatToBuffer(float[] a)