[issue4376] Nested ctypes 'BigEndianStructure' fails

Amaury Forgeot d'Arc report at bugs.python.org
Tue Jul 12 10:25:47 CEST 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Is there a unit test about the actual feature: that the bytes are actually swapped in the structure?

For example, with a
class T(BigEndianStructure): _fields_ = [("a", c_int), ("b", c_int)]
cast a pointer to T into a pointer to c_int, and read the values.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4376>
_______________________________________


More information about the Python-bugs-list mailing list