Markdown Format | JSON API | MCP Server Tool
Help on module _ctypes: NAME _ctypes - Create and manipulate C compatible data types in Python. MODULE REFERENCE https://docs.python.org/3.10/library/_ctypes.html The following documentation is automatically generated from the Python source files. It may be incomplete, incorrect or include features that are considered implementation detail and may vary between Python implementations. When in doubt, consult the module reference at the location listed above. CLASSES _CData(builtins.object) Array CFuncPtr Structure Union builtins.Exception(builtins.BaseException) ctypes.ArgumentError class ArgumentError(builtins.Exception) | Method resolution order: | ArgumentError | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args class Array(_CData) | XXX to be provided | | Method resolution order: | Array | _CData | builtins.object | | Methods defined here: | | __delitem__(self, key, /) | Delete self[key]. | | __getitem__(self, key, /) | Return self[key]. | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __len__(self, /) | Return len(self). | | __setitem__(self, key, value, /) | Set self[key] to value. | | ---------------------------------------------------------------------- | Class methods defined here: | | __class_getitem__(...) from PyCArrayType | See PEP 585 | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) from PyCArrayType | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from _CData: | | __ctypes_from_outparam__(...) | | __hash__(self, /) | Return hash(self). | | __reduce__(...) | Helper for pickle. | | __setstate__(...) class CFuncPtr(_CData) | Function Pointer | | Method resolution order: | CFuncPtr | _CData | builtins.object | | Methods defined here: | | __bool__(self, /) | True if self else False | | __call__(self, /, *args, **kwargs) | Call self as a function. | | __repr__(self, /) | Return repr(self). | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) from PyCFuncPtrType | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | argtypes | specify the argument types | | errcheck | a function to check for errors | | restype | specify the result type | | ---------------------------------------------------------------------- | Methods inherited from _CData: | | __ctypes_from_outparam__(...) | | __hash__(self, /) | Return hash(self). | | __reduce__(...) | Helper for pickle. | | __setstate__(...) class Structure(_CData) | Structure base class | | Method resolution order: | Structure | _CData | builtins.object | | Methods defined here: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) from PyCStructType | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from _CData: | | __ctypes_from_outparam__(...) | | __hash__(self, /) | Return hash(self). | | __reduce__(...) | Helper for pickle. | | __setstate__(...) class Union(_CData) | Union base class | | Method resolution order: | Union | _CData | builtins.object | | Methods defined here: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) from UnionType | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from _CData: | | __ctypes_from_outparam__(...) | | __hash__(self, /) | Return hash(self). | | __reduce__(...) | Helper for pickle. | | __setstate__(...) FUNCTIONS POINTER(...) PyObj_FromPtr(...) Py_DECREF(...) Py_INCREF(...) addressof(...) addressof(C instance) -> integer Return the address of the C instance internal buffer alignment(...) alignment(C type) -> integer alignment(C instance) -> integer Return the alignment requirements of a C instance buffer_info(...) Return buffer interface information byref(...) byref(C instance[, offset=0]) -> byref-object Return a pointer lookalike to a C instance, only usable as function argument call_cdeclfunction(...) call_function(...) dlclose(...) dlclose a library dlopen(...) dlopen(name, flag={RTLD_GLOBAL|RTLD_LOCAL}) open a shared library dlsym(...) find symbol in shared library get_errno(...) pointer(...) resize(...) Resize the memory buffer of a ctypes instance set_errno(...) sizeof(...) sizeof(C type) -> integer sizeof(C instance) -> integer Return the size in bytes of a C instance DATA FUNCFLAG_CDECL = 1 FUNCFLAG_PYTHONAPI = 4 FUNCFLAG_USE_ERRNO = 8 FUNCFLAG_USE_LASTERROR = 16 RTLD_GLOBAL = 256 RTLD_LOCAL = 0 VERSION 1.1.0 FILE /usr/lib/python3.10/lib-dynload/_ctypes.cpython-310-x86_64-linux-gnu.so
Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:13 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)