public boolean[] decodeBooleans() {
        boolean[] res = new boolean[decodeInt()];
        for (int i = 0; i < res.length; i++) {
            res[i] = decodeBoolean();
        }
        return res;
    }