Android DoubleBuffer Create newDoubleBuffer(int paramInt)

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

Description

new Double Buffer

Declaration

public static DoubleBuffer newDoubleBuffer(int paramInt) 

Method Source Code

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

public class Main {
    public static DoubleBuffer newDoubleBuffer(int paramInt) {
        ByteBuffer localByteBuffer = newByteBuffer(paramInt * 8);
        return localByteBuffer.asDoubleBuffer();
    }/*w ww  .j  a  v a  2s .  c  o m*/

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

Related

  1. newDoubleBuffer(int numDoubles)
  2. newDoubleBuffer(int numDoubles)
  3. newDoubleBuffer(int numDoubles)