Android ByteBuffer Create createByteBuffer(int size)

Here you can find the source of createByteBuffer(int size)

Description

create Byte Buffer

Declaration

public static ByteBuffer createByteBuffer(int size) 

Method Source Code

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

public class Main {
    public static ByteBuffer createByteBuffer(int size) {
        return ByteBuffer.allocateDirect(size).order(
                ByteOrder.nativeOrder());
    }/* www.j av  a 2s . co m*/
}

Related

  1. newUnsafeByteBuffer(int numBytes)
  2. createByteBuffer(byte[] data)
  3. createByteBuffer(int capacity)
  4. createByteBuffer(int count)
  5. createByteBuffer(int size)
  6. createDirectByteBuffer( final int capacity, final ByteBuffer previous)
  7. createDirectByteBuffer(final int capacity)
  8. arr2ByteBuffer(byte [] arr)
  9. arr2ByteBuffer(byte[] arr)