Android ShortBuffer Create ConvToShortBuffer(short buf[])

Here you can find the source of ConvToShortBuffer(short buf[])

Description

Conv To Short Buffer

Declaration

public static ShortBuffer ConvToShortBuffer(short buf[]) 

Method Source Code

//package com.java2s;

import java.nio.ShortBuffer;

public class Main {
    public static ShortBuffer ConvToShortBuffer(short buf[]) {
        ShortBuffer ReturnBuffer = ShortBuffer.allocate(buf.length);
        ReturnBuffer.put(buf);/*from  w  w w  . j ava  2  s  .c  o m*/
        ReturnBuffer.position(0);
        return ReturnBuffer;
    }
}

Related

  1. toShortBuffer(short[] array)
  2. shotToBuffer(short[] a)
  3. setupShortBuffer(ShortBuffer preBuffer, short[] array)
  4. wrap(short[] buffer)
  5. ConvToShortBuffer(short buf[])