def METHOD_NAME(self, data, size):
    """
    Append user-supplied data to chunk, return resulting chunk size. If the
    data would exceeded the available space, it is truncated. If you want to
    grow the chunk to accommodate new data, use the zchunk_extend method.
    """
    return utils.lib.zchunk_append(self._p, data, size)