Java ByteBuffer Allocate allocateDoubles(final int howmany, final int SIZE)

Here you can find the source of allocateDoubles(final int howmany, final int SIZE)

Description

allocate Doubles

License

Open Source License

Declaration

public static DoubleBuffer allocateDoubles(final int howmany, final int SIZE) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static DoubleBuffer allocateDoubles(final int howmany, final int SIZE) {
        return ByteBuffer.allocateDirect(howmany * SIZE).order(ByteOrder.nativeOrder()).asDoubleBuffer();
    }//w w w  . j ava  2 s  .  co m
}

Related

  1. allocate(int size)
  2. allocateBuffer(int size, boolean isDirect)
  3. allocateDirect(int capacity)
  4. allocateDirectBuffer(int size)
  5. allocateDirectInt(int size)
  6. allocateFloats(final int howmany, final int SIZE)
  7. allocateInt()
  8. allocateInts(final int[] intarray, final int SIZE)
  9. allocateNativeOrderDirectBuffer(int size)