<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)