Android LongBuffer Create newLongBuffer(int paramInt)

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

Description

new Long Buffer

Declaration

public static LongBuffer newLongBuffer(int paramInt) 

Method Source Code

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

import java.nio.LongBuffer;

public class Main {
    public static LongBuffer newLongBuffer(int paramInt) {
        ByteBuffer localByteBuffer = newByteBuffer(paramInt * 8);
        return localByteBuffer.asLongBuffer();
    }/*from  w w  w.  j a va2 s. c  o  m*/

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

Related

  1. newLongBuffer(int numLongs)
  2. newLongBuffer(int numLongs)
  3. newLongBuffer(int numLongs)