(self)
Reset the target.  Parameters are set to their default values, any
        flags are cleared.
Reset the target.  Parameters are set to their default values, any
        flags are cleared.
Reset the target . Parameters are set to their default values any flags are cleared .
def reset(self):
        """Reset the target.  Parameters are set to their default values, any
        flags are cleared."""
        ct.memset(self._target_buf, 0, self.size)
        self._update_pointers()
        t = self._ptr[0]
        t.u.target_size = self.size
        t.u.user.revision = self._revision
        if self._module.init:
            self._module.init(self._ptr)
        self._module.tflags = 0
        udata_size = getattr(self._module, 'udata_size', 0)
        if udata_size > 0:
            udata_buf = (ct.c_ubyte * udata_size)()
            self._module.udata = ct.cast(ct.byref(udata_buf), ct.c_void_p)
def reset ( self ) : ct . memset ( self . _target_buf , 0 , self . size ) self . _update_pointers ( ) t = self . _ptr [ 0 ] t . u . target_size = self . size t . u . user . revision = self . _revision if self . _module . init : self . _module . init ( self . _ptr ) self . _module . tflags = 0 udata_size = getattr ( self . _module , 'udata_size' , 0 ) if udata_size > 0 : udata_buf = ( ct . c_ubyte * udata_size ) ( ) self . _module . udata = ct . cast ( ct . byref ( udata_buf ) , ct . c_void_p )