Home | History | Annotate | Download | only in multiprocessing

Lines Matching refs:ctypes

2 # Module which supports allocation of ctypes objects from shared memory
36 import ctypes
49 'c': ctypes.c_char, 'u': ctypes.c_wchar,
50 'b': ctypes.c_byte, 'B': ctypes.c_ubyte,
51 'h': ctypes.c_short, 'H': ctypes.c_ushort,
52 'i': ctypes.c_int, 'I': ctypes.c_uint,
53 'l': ctypes.c_long, 'L': ctypes.c_ulong,
54 'f': ctypes.c_float, 'd': ctypes.c_double
62 size = ctypes.sizeof(type_)
68 Returns a ctypes object allocated from shared memory
72 ctypes.memset(ctypes.addressof(obj), 0, ctypes.sizeof(obj))
78 Returns a ctypes array allocated from shared memory
84 ctypes.memset(ctypes.addressof(obj), 0, ctypes.sizeof(obj))
126 ctypes.pointer(new_obj)[0] = obj
132 if isinstance(obj, ctypes._SimpleCData):
134 elif isinstance(obj, ctypes.Array):
135 if obj._type_ is ctypes.c_char:
155 if isinstance(obj, ctypes.Array):