Android Little Endian to Char Convert littleEndToChar(byte[] array, int start)

Here you can find the source of littleEndToChar(byte[] array, int start)

Description

\copydoc littleEndToLong()

Declaration

public static char littleEndToChar(byte[] array, int start) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from w  w w. j a  va2 s .c om
     * \copydoc littleEndToLong()
     **/
    public static char littleEndToChar(byte[] array, int start) {
        return (char) ((array[start + 1] << 8) | (array[start] & 0xFF));
    }
}