Java ByteBuffer Create newByteBuffer(int len)

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

Description

new Byte Buffer

License

Mozilla Public License

Declaration

public static ByteBuffer newByteBuffer(int len) 

Method Source Code

//package com.java2s;
//License from project: Mozilla Public License 

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

public class Main {
    public static ByteBuffer newByteBuffer(int len) {
        return ByteBuffer.allocateDirect(len).order(ByteOrder.nativeOrder());
    }//w  w w.j  av a2  s.  co m
}

Related

  1. createDirectByteBuffer(byte[] data)
  2. createIconsFromBuffers(List byteBuffers)
  3. createInputStream(final ByteBuffer buf)
  4. newByteArrayFromByteBuffer(ByteBuffer buf)
  5. newByteBuffer(int bufferSize, boolean direct)
  6. newByteBuffer(int nbElements)
  7. newByteBuffer(int theSize)
  8. newDirectByteBuffer(int size)