public static int getIntFrom2ByteArray(final byte[] input) {
        final byte[] result = new byte[4];

        result[0] = 0;
        result[1] = 0;
        result[2] = input[0];
        result[3] = input[1];

        return ByteUtils.getIntFromByteArray(result);
    }
Converts a byte array with a length of 2 into an int

@param input the input
@return the int from the array
library/src/main/java/dev/alt236/bluetoothlelib/util/ByteUtils.java