def METHOD_NAME(self, data, size):
    """
    Append user-supplied data to chunk, return resulting chunk size. If the
    data would exceeded the available space, the chunk grows in size.
    """
    return utils.lib.zchunk_extend(self._p, data, size)