def _append_value(data, value_to_append, isdif):
    """
    Helper function for _finish_value: actual data push happens
    here based on isdif flag (direct value or difference from prev)
    """
    if isdif:
        data.append(data[-1] + value_to_append)
    else:
        data.append(value_to_append)
