Android IntBuffer Create newIntBuffer(int paramInt)

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

Description

new Int Buffer

Declaration

public static IntBuffer newIntBuffer(int paramInt) 

Method Source Code

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

import java.nio.IntBuffer;

public class Main {
    public static IntBuffer newIntBuffer(int paramInt) {
        ByteBuffer localByteBuffer = newByteBuffer(paramInt * 4);
        return localByteBuffer.asIntBuffer();
    }//from   w w w  .j a v a 2  s.co  m

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

Related

  1. getIntegerBuffer(int[] list)
  2. makeIntBuffer(int size)
  3. makeIntBuffer(int[] arr)
  4. newIntBuffer(int numInts)
  5. newIntBuffer(int numInts)
  6. setupIntBuffer(IntBuffer preBuffer, int[] array)
  7. toIntBuffer(int[] array)
  8. createDirectIntBuffer(final int capacity)
  9. createDirectIntBuffer(final int capacity, final IntBuffer previous)