Here you can find the source of newByteBuffer(int theSize)
Parameter | Description |
---|---|
theLength | a parameter |
public static ByteBuffer newByteBuffer(int theSize)
//package com.java2s; /*/*from www. jav a2 s .com*/ * 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.ByteBuffer; public class Main { /** * @param theLength * @return */ public static ByteBuffer newByteBuffer(int theSize) { return ByteBuffer.allocate(theSize); } }