class AkServerUtil {

    public static int getMediumInt(byte[] bytes, int index) {
        final int value = getUMediumInt(bytes, index);
        // Negative values have bit 23 set so the sign extension promotes to 32bit representation
        return (value << 8) >> 8;
    }

}