Here you can find the source of newFloatBuffer(final int theSize)
Parameter | Description |
---|---|
theSize | size for the buffer |
public static FloatBuffer newFloatBuffer(final int theSize)
//package com.java2s; /*//from w ww . j a v a2 s.c o m * Copyright (c) 2013 christianr. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v3 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-3.0.html * * Contributors: * christianr - initial API and implementation */ import java.nio.FloatBuffer; public class Main { /** * Creates a FloatBuffer of the given size * * @param theSize * size for the buffer * @return FloatBuffer of the given size */ public static FloatBuffer newFloatBuffer(final int theSize) { return FloatBuffer.allocate(theSize); } }