<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def strace_set_buffer_size(self, size):
 """Sets the STRACE buffer size. Args: self (JLink):
 the ``JLink`` instance. Returns: ``None`` Raises: JLinkException: on error. """

        size = ctypes.c_uint32(size)
        res = self._dll.JLINK_STRACE_Control(enums.JLinkStraceCommand.SET_BUFFER_SIZE, size)
        if res < 0:
            raise errors.JLinkException('Failed to set the STRACE buffer size.')

        return None