print all python Structure field values

Viewed 4887

I've trying to write a small program which could read .h file, then generate ctypes.Structure classes from struct in .h file. Then i'm reading binary file into the Structures. And then i need to print out all of the Structure field values (including arrays and subStructures). How can i do it?

2 Answers
Related