Android Little Endian to Int Convert littleEndToInt(byte[] array, int start)

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

Description

\copydoc littleEndToLong()

Declaration

public static int littleEndToInt(byte[] array, int start) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from  w w w  .  j  a va  2  s  . com
     * \copydoc littleEndToLong()
     **/
    public static int littleEndToInt(byte[] array, int start) {
        return (((array[start + 3] & 0xFF) << 24)
                | ((array[start + 2] & 0xFF) << 16)
                | ((array[start + 1] & 0xFF) << 8) | (array[start + 0] & 0xFF));
    }
}