Java Char Convert To convertCharToShort(final char[] tmp, final short[] buffer)

Here you can find the source of convertCharToShort(final char[] tmp, final short[] buffer)

Description

Convert char to short.

License

Apache License

Parameter

Parameter Description
tmp the tmp
buffer the buffer

Declaration

public static void convertCharToShort(final char[] tmp, final short[] buffer) 

Method Source Code

//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];
    }
}

Related

  1. convertCharSet(String str, String desCharset)
  2. convertCharsToUnicodeChars(final String s, final boolean toLowerCase)
  3. convertCharToBoolean(final char value)
  4. convertCharToCharacterArray(final Object originalArray)
  5. convertCharToInt(char input)
  6. convertCharToSimpleRegex(String str, char lastChar, char currentChar)