ctypes (version 1.0.2)
index
/usr/local/lib/python2.5/ctypes/__init__.py
Module Docs

create and manipulate C data types in Python

 
Package Contents
       
_endian
macholib (package)
test (package)
util
wintypes

 
Classes
       
__builtin__.object
CDLL
PyDLL
LibraryLoader
_ctypes._SimpleCData(_ctypes._CData)
c_byte
c_byte
c_char
c_char_p
c_double
c_float
c_long
c_long
c_long
c_longlong
c_longlong
c_short
c_short
c_ubyte
c_ubyte
c_ulong
c_ulong
c_ulong
c_ulong
c_ulonglong
c_ulonglong
c_ushort
c_ushort
c_void_p
c_void_p
c_wchar
c_wchar_p
py_object
exceptions.Exception(exceptions.BaseException)
ArgumentError

 
class ArgumentError(exceptions.Exception)
    
Method resolution order:
ArgumentError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x8125440>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message

 
class CDLL(__builtin__.object)
    An instance of this class represents a loaded dll/shared
library, exporting functions using the standard C calling
convention (named 'cdecl' on Windows).
 
The exported functions can be accessed as attributes, or by
indexing with the function name.  Examples:
 
<obj>.qsort -> callable object
<obj>['qsort'] -> callable object
 
Calling the functions releases the Python GIL during the call and
reaquires it afterwards.
 
  Methods defined here:
__getattr__(self, name)
__getitem__(self, name_or_ordinal)
__init__(self, name, mode=0, handle=None)
__repr__(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class LibraryLoader(__builtin__.object)
     Methods defined here:
LoadLibrary(self, name)
__getattr__(self, name)
__getitem__(self, name)
__init__(self, dlltype)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class PyDLL(CDLL)
    This class represents the Python library itself.  It allows to
access Python API functions.  The GIL is not released, and
Python exceptions are handled correctly.
 
 
Method resolution order:
PyDLL
CDLL
__builtin__.object

Methods inherited from CDLL:
__getattr__(self, name)
__getitem__(self, name_or_ordinal)
__init__(self, name, mode=0, handle=None)
__repr__(self)

Data descriptors inherited from CDLL:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class c_byte(_ctypes._SimpleCData)
    
Method resolution order:
c_byte
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_byte'>
__ctype_le__ = <class 'ctypes.c_byte'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_char(_ctypes._SimpleCData)
    
Method resolution order:
c_char
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_char'>
__ctype_le__ = <class 'ctypes.c_char'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_char_p(_ctypes._SimpleCData)
    
Method resolution order:
c_char_p
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
from_param = <built-in method from_param of _ctypes.SimpleType object at 0xa296154>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_double(_ctypes._SimpleCData)
    
Method resolution order:
c_double
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_double_be'>
__ctype_le__ = <class 'ctypes.c_double'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_float(_ctypes._SimpleCData)
    
Method resolution order:
c_float
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_float_be'>
__ctype_le__ = <class 'ctypes.c_float'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int = class c_long(_ctypes._SimpleCData)
    
Method resolution order:
c_long
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_long_be'>
__ctype_le__ = <class 'ctypes.c_long'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int16 = class c_short(_ctypes._SimpleCData)
    
Method resolution order:
c_short
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_short_be'>
__ctype_le__ = <class 'ctypes.c_short'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int32 = class c_long(_ctypes._SimpleCData)
    
Method resolution order:
c_long
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_long_be'>
__ctype_le__ = <class 'ctypes.c_long'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int64 = class c_longlong(_ctypes._SimpleCData)
    
Method resolution order:
c_longlong
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_longlong_be'>
__ctype_le__ = <class 'ctypes.c_longlong'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int8 = class c_byte(_ctypes._SimpleCData)
    
Method resolution order:
c_byte
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_byte'>
__ctype_le__ = <class 'ctypes.c_byte'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_long(_ctypes._SimpleCData)
    
Method resolution order:
c_long
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_long_be'>
__ctype_le__ = <class 'ctypes.c_long'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_longlong(_ctypes._SimpleCData)
    
Method resolution order:
c_longlong
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_longlong_be'>
__ctype_le__ = <class 'ctypes.c_longlong'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_short(_ctypes._SimpleCData)
    
Method resolution order:
c_short
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_short_be'>
__ctype_le__ = <class 'ctypes.c_short'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_size_t = class c_ulong(_ctypes._SimpleCData)
    
Method resolution order:
c_ulong
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulong_be'>
__ctype_le__ = <class 'ctypes.c_ulong'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_ubyte(_ctypes._SimpleCData)
    
Method resolution order:
c_ubyte
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ubyte'>
__ctype_le__ = <class 'ctypes.c_ubyte'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint = class c_ulong(_ctypes._SimpleCData)
    
Method resolution order:
c_ulong
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulong_be'>
__ctype_le__ = <class 'ctypes.c_ulong'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint16 = class c_ushort(_ctypes._SimpleCData)
    
Method resolution order:
c_ushort
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ushort_be'>
__ctype_le__ = <class 'ctypes.c_ushort'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint32 = class c_ulong(_ctypes._SimpleCData)
    
Method resolution order:
c_ulong
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulong_be'>
__ctype_le__ = <class 'ctypes.c_ulong'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint64 = class c_ulonglong(_ctypes._SimpleCData)
    
Method resolution order:
c_ulonglong
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulonglong_be'>
__ctype_le__ = <class 'ctypes.c_ulonglong'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint8 = class c_ubyte(_ctypes._SimpleCData)
    
Method resolution order:
c_ubyte
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ubyte'>
__ctype_le__ = <class 'ctypes.c_ubyte'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_ulong(_ctypes._SimpleCData)
    
Method resolution order:
c_ulong
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulong_be'>
__ctype_le__ = <class 'ctypes.c_ulong'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_ulonglong(_ctypes._SimpleCData)
    
Method resolution order:
c_ulonglong
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulonglong_be'>
__ctype_le__ = <class 'ctypes.c_ulonglong'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_ushort(_ctypes._SimpleCData)
    
Method resolution order:
c_ushort
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ushort_be'>
__ctype_le__ = <class 'ctypes.c_ushort'>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_void_p(_ctypes._SimpleCData)
    
Method resolution order:
c_void_p
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
from_param = <built-in method from_param of _ctypes.SimpleType object at 0xa2964ac>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_voidp = class c_void_p(_ctypes._SimpleCData)
    
Method resolution order:
c_void_p
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
from_param = <built-in method from_param of _ctypes.SimpleType object at 0xa2964ac>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_wchar(_ctypes._SimpleCData)
    
Method resolution order:
c_wchar
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_wchar_p(_ctypes._SimpleCData)
    
Method resolution order:
c_wchar_p
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
from_param = <built-in method from_param of _ctypes.SimpleType object at 0xa296804>

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class py_object(_ctypes._SimpleCData)
    
Method resolution order:
py_object
_ctypes._SimpleCData
_ctypes._CData
__builtin__.object

Methods defined here:
__repr__(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from _ctypes._SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0

Data descriptors inherited from _ctypes._SimpleCData:
value
current value

Data and other attributes inherited from _ctypes._SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x15fd60>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
Functions
       
ARRAY(typ, len)
# XXX Deprecated
CFUNCTYPE(restype, *argtypes)
CFUNCTYPE(restype, *argtypes) -> function prototype.
 
restype: the result type
argtypes: a sequence specifying the argument types
 
The function prototype can be called in different ways to create a
callable object:
 
prototype(integer address) -> foreign function
prototype(callable) -> create and return a C callable function from callable
prototype(integer index, method name[, paramflags]) -> foreign function calling a COM method
prototype((ordinal number, dll object)[, paramflags]) -> foreign function exported by ordinal
prototype((function name, dll object)[, paramflags]) -> foreign function exported by name
POINTER(cls)
PYFUNCTYPE(restype, *argtypes)
SetPointerType(pointer, cls)
# XXX Deprecated
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
byref(...)
byref(C instance) -> byref-object
Return a pointer lookalike to a C instance, only usable
as function argument
c_buffer(init, size=None)
cast(obj, typ)
create_string_buffer(init, size=None)
create_string_buffer(aString) -> character array
create_string_buffer(anInteger) -> character array
create_string_buffer(aString, anInteger) -> character array
create_unicode_buffer(init, size=None)
create_unicode_buffer(aString) -> character array
create_unicode_buffer(anInteger) -> character array
create_unicode_buffer(aString, anInteger) -> character array
pointer(inst)
resize(...)
Resize the memory buffer of a ctypes instance
set_conversion_mode(...)
set_conversion_mode(encoding, errors) -> (previous-encoding, previous-errors)
 
Set the encoding and error handling ctypes uses when converting
between unicode and strings.  Returns the previous values.
sizeof(...)
sizeof(C type) -> integer
sizeof(C instance) -> integer
Return the size in bytes of a C instance
string_at(ptr, size=-1)
string_at(addr[, size]) -> string
 
Return the string at addr.
wstring_at(ptr, size=-1)
wstring_at(addr[, size]) -> string
 
Return the string at addr.

 
Data
        DEFAULT_MODE = 0
RTLD_GLOBAL = 256
RTLD_LOCAL = 0
__version__ = '1.0.2'
cdll = <ctypes.LibraryLoader object at 0xb6d44bac>
memmove = <CFunctionType object at 0xb6d3c304>
memset = <CFunctionType object at 0xb6d3c36c>
pydll = <ctypes.LibraryLoader object at 0xb6d44bcc>
pythonapi = <PyDLL 'None', handle 40a710 at b6d44bec>