Android ByteBuffer Create newByteBuffer(int paramInt)

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

Description

new Byte Buffer

Declaration

public static ByteBuffer newByteBuffer(int paramInt) 

Method Source Code

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

public class Main {
    public static ByteBuffer newByteBuffer(int paramInt) {
        ByteBuffer localByteBuffer = ByteBuffer.allocateDirect(paramInt);
        localByteBuffer.order(ByteOrder.nativeOrder());
        return localByteBuffer;
    }//from w w w .  j a  v  a 2s . c  o m
}

Related

  1. list2ByteBuffer(List arr)
  2. list2ByteBuffer(List list)
  3. makeByteBuffer(byte[] arr)
  4. makeByteBuffer(int size)
  5. newByteBuffer(int numBytes)
  6. setupByteBuffer(ByteBuffer preBuffer, byte[] array)
  7. renewBuffer(ByteBuffer buf)
  8. allocateAudioBuffer(int size)
  9. makeByteBuffer(byte[] array)