Here you can find the source of asByteBuffer(byte... arguments)
public static ByteBuffer asByteBuffer(byte... arguments)
//package com.java2s; /**/*w w w.j av a 2s . c o m*/ * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author The JCodec project * */ import java.nio.ByteBuffer; public class Main { public static ByteBuffer asByteBuffer(byte... arguments) { return ByteBuffer.wrap(arguments); } }