当前位置: 首页>>代码示例>>Python>>正文


Python _ctypes.FreeLibrary方法代码示例

本文整理汇总了Python中_ctypes.FreeLibrary方法的典型用法代码示例。如果您正苦于以下问题:Python _ctypes.FreeLibrary方法的具体用法?Python _ctypes.FreeLibrary怎么用?Python _ctypes.FreeLibrary使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在_ctypes的用法示例。


在下文中一共展示了_ctypes.FreeLibrary方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_1703286_A

# 需要导入模块: import _ctypes [as 别名]
# 或者: from _ctypes import FreeLibrary [as 别名]
def test_1703286_A(self):
        from _ctypes import LoadLibrary, FreeLibrary
        # On winXP 64-bit, advapi32 loads at an address that does
        # NOT fit into a 32-bit integer.  FreeLibrary must be able
        # to accept this address.

        # These are tests for http://www.python.org/sf/1703286
        handle = LoadLibrary("advapi32")
        FreeLibrary(handle) 
开发者ID:IronLanguages,项目名称:ironpython2,代码行数:11,代码来源:test_loading.py

示例2: close

# 需要导入模块: import _ctypes [as 别名]
# 或者: from _ctypes import FreeLibrary [as 别名]
def close(self):
        if self.system == 'windows':
            _ctypes.FreeLibrary(self.kunpeng._handle)
        else:
            handle = self.kunpeng._handle
            del self.kunpeng
            _ctypes.dlclose(handle) 
开发者ID:ysrc,项目名称:xunfeng,代码行数:9,代码来源:kunpeng.py

示例3: test_1703286_A

# 需要导入模块: import _ctypes [as 别名]
# 或者: from _ctypes import FreeLibrary [as 别名]
def test_1703286_A(self):
            from _ctypes import LoadLibrary, FreeLibrary
            # On winXP 64-bit, advapi32 loads at an address that does
            # NOT fit into a 32-bit integer.  FreeLibrary must be able
            # to accept this address.

            # These are tests for http://www.python.org/sf/1703286
            handle = LoadLibrary("advapi32")
            FreeLibrary(handle) 
开发者ID:dxwu,项目名称:BinderFilter,代码行数:11,代码来源:test_loading.py

示例4: deleteCB

# 需要导入模块: import _ctypes [as 别名]
# 或者: from _ctypes import FreeLibrary [as 别名]
def deleteCB(self, offset):
        """Free the state associated to @offset and delete it
        @offset: gcc state offset
        """
        flib = None
        if is_win:
            flib = _ctypes.FreeLibrary
        else:
            flib = _ctypes.dlclose
        flib(self.states[offset]._handle)
        del self.states[offset] 
开发者ID:cea-sec,项目名称:miasm,代码行数:13,代码来源:jitcore_gcc.py

示例5: free

# 需要导入模块: import _ctypes [as 别名]
# 或者: from _ctypes import FreeLibrary [as 别名]
def free(self):
        ''' Call FMU destructor before being destructed. Just cleaning up. '''
        if hasattr(self, '_library'):
            self.freeModelInstance()            
            _ctypes.FreeLibrary(self._libraryHandle)
        shutil.rmtree(self._tempDir) 
开发者ID:PySimulator,项目名称:PySimulator,代码行数:8,代码来源:FMUInterface1.py

示例6: freeLibrary

# 需要导入模块: import _ctypes [as 别名]
# 或者: from _ctypes import FreeLibrary [as 别名]
def freeLibrary(self):
        ''' Call FMU destructor before being destructed. Just cleaning up. '''
        if hasattr(self, '_library'):
            self.freeModelInstance()            
            _ctypes.FreeLibrary(self._libraryHandle) 
开发者ID:PySimulator,项目名称:PySimulator,代码行数:7,代码来源:FMUInterface2.py


注:本文中的_ctypes.FreeLibrary方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。