Re: feature request for setting _pack_ to a higher value
Axel Seibert <[email protected]>
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Sorry for the spam, I just noticed my typo - by accident I left one _pack_ = 8 in there. While syntactically correct, it might confuse some, so let me correct the structs definition:
STRING = c_char_p
ARLong32 = c_long
ARULong32 = c_ulong
ARTimestamp = ARLong32
ARTime = ARLong32
class ARValueStruct(Structure):
pass
class N13ARValueStruct3DOT_1E(Union):
pass
N13ARValueStruct3DOT_1E._fields_ = [
('noval_', size_t),
('keyNum', c_uint),
('intVal', ARLong32),
('realVal', c_double),
('charVal', STRING),
('diaryVal', STRING),
('enumVal', ARULong32),
('timeVal', ARTimestamp),
('maskVal', ARULong32),
('timeOfDayVal', ARTime),
('byteListVal', POINTER(ARByteList)),
('decimalVal', STRING),
('attachVal', POINTER(ARAttachStruct)),
('ulongVal', ARULong32),
('coordListVal', POINTER(ARCoordList)),
('dateVal', c_int),
('currencyVal', POINTER(ARCurrencyStruct)),
('ptrVal', c_void_p),
]
ARValueStruct._fields_ = [
('dataType', c_uint),
('u', N13ARValueStruct3DOT_1E),
]
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev