This repository was archived by the owner on Jun 12, 2024. It is now read-only.
Replies: 1 comment
-
I like the idea of creating a MessageData class. For now, this would just wrap some ctypes functions, but could optionally use other representations under the hood in the future. The base class could have methods that the user could define to decide the proper string representation. That way we don't make any assumptions in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Dave's pull request, I pushed a commit that added repr methods to the message and message data classes. This works (so I'm not opening an issue), but may not be ideal and may warrant further discussion.
I also am creating this discussion to save a few stackoverflow tabs I have had open that may help improve the existing method:
https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection
https://stackoverflow.com/questions/26927685/introspecting-nested-ctypes-structures
Beta Was this translation helpful? Give feedback.
All reactions