Android IntBuffer Create createIntBuffer(int count)

Here you can find the source of createIntBuffer(int count)

Description

create Int Buffer

License

Open Source License

Declaration

public static IntBuffer createIntBuffer(int count) 

Method Source Code

//package com.java2s;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

import java.nio.IntBuffer;

public class Main {
    public static IntBuffer createIntBuffer(int count) {
        ByteBuffer data = ByteBuffer.allocateDirect(count * 4);
        data.order(ByteOrder.nativeOrder());
        IntBuffer p1 = data.asIntBuffer();
        return p1;
    }//w ww  .  j  av a 2  s  .  c  om
}

Related

  1. copy(float[] src, IntBuffer dst, int numFloats, int offset)
  2. newIntBuffer(int numInts)
  3. newIntBuffer(int numInts)
  4. createIntBuffer(int capacity)
  5. createIntBuffer(int size)
  6. createIntBuffer(int[] data)
  7. getIntegerBuffer(int[] list)
  8. makeIntBuffer(int size)