Set chunk data from user-supplied data; truncate if too large. Data may
be null. Returns actual size of chunk

def set(self, data, size):
        """
        Set chunk data from user-supplied data; truncate if too large. Data may
be null. Returns actual size of chunk
        """
        return lib.zchunk_set(self._as_parameter_, data, size)