ctypes._endian
index
/usr/lib/python2.5/ctypes/_endian.py

######################################################################
#  This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################

 
Modules
       
sys

 
Classes
       
_ctypes.StructType(type)
_swapped_meta
Structure(_ctypes._CData)
BigEndianStructure

 
class BigEndianStructure(Structure)
    Structure with big endian byte order
 
 
Method resolution order:
BigEndianStructure
Structure
_ctypes._CData
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:
__metaclass__ = <class 'ctypes._endian._swapped_meta'>

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

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

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

 
class _swapped_meta(_ctypes.StructType)
    
Method resolution order:
_swapped_meta
_ctypes.StructType
type
object

Methods defined here:
__setattr__(self, attrname, value)

Methods inherited from _ctypes.StructType:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__mul__(...)
x.__mul__(n) <==> x*n
__rmul__(...)
x.__rmul__(n) <==> n*x
from_address(...)
C.from_address(integer) -> C instance
access a C instance at the specified address
from_param(...)
Convert a Python object into a function call parameter.
in_dll(...)
C.in_dll(dll, name) -> C instance
access a C instance in a dll

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

Methods inherited from type:
__call__(...)
x.__call__(...) <==> x(...)
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__repr__(...)
x.__repr__() <==> repr(x)
__subclasses__(...)
__subclasses__() -> list of immediate subclasses
mro(...)
mro() -> list
return a type's method resolution order

Data descriptors inherited from type:
__base__
__bases__
__basicsize__
__dict__
__dictoffset__
__flags__
__itemsize__
__mro__
__weakrefoffset__

 
Functions
       
_other_endian(typ)
Return the type with the 'other' byte order.  Simple types like
c_int and so on already have __ctype_be__ and __ctype_le__
attributes which contain the types, for more complicated types
only arrays are supported.
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
memmove = <CFunctionType object at 0x4022bf9c> memset = <CFunctionType object at 0x835202c>
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

 
Data
        DEFAULT_MODE = 0
RTLD_GLOBAL = 256
RTLD_LOCAL = 0
_OTHER_ENDIAN = '__ctype_be__'
__file__ = '/usr/lib/python2.5/ctypes/_endian.pyc'
__name__ = 'ctypes._endian'
cdll = <ctypes.LibraryLoader object at 0x835146c>
pydll = <ctypes.LibraryLoader object at 0x835148c>
pythonapi = <PyDLL 'None', handle 4001c668 at 83514ac>