Android ByteBuffer Create createByteBuffer(int count)

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

Description

create Byte Buffer

License

Open Source License

Declaration

public static ByteBuffer createByteBuffer(int count) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static ByteBuffer createByteBuffer(int count) {
        ByteBuffer data = ByteBuffer.allocateDirect(count * 4);
        data.order(ByteOrder.nativeOrder());
        return data;
    }/*from  ww  w .  j  av  a 2s  .  com*/
}

Related

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