public double[] decodeDoubles() {
        double[] res = new double[decodeInt()];
        for (int i = 0; i < res.length; i++) {
            res[i] = decodeDouble();
        }
        return res;
    }