getPrefixSum(index) {
        if (index < 0) {
            return 0;
        }
        index = toUint32(index);
        return this._getPrefixSum(index);
    }
Returns the sum of the first `index + 1` many items.
@returns `SUM(0 <= j <= index, values[j])`.