Here you can find the source of convertCharToShort(final char[] tmp, final short[] buffer)
Parameter | Description |
---|---|
tmp | the tmp |
buffer | the buffer |
public static void convertCharToShort(final char[] tmp, final short[] buffer)
//package com.java2s; //License from project: Apache License public class Main { /**//from ww w . j a va2 s. com * Convert char to short. * * @param tmp the tmp * @param buffer the buffer */ public static void convertCharToShort(final char[] tmp, final short[] buffer) { for (int i = 0; i < buffer.length; i++) buffer[i] = (short) tmp[i]; } }