memflow-py icon indicating copy to clipboard operation
memflow-py copied to clipboard

Convert c structures to ctypes

Open emesare opened this issue 3 years ago • 1 comments

Not something that will exist within memflow-py however it would be a great addition to have a tool be able to convert a c structure into a ctypes structure. Something like https://github.com/fox-it/dissect.cstruct seems to have a rather "simple" parser for c-like structs, however I see no mention of generating ctypes structures, regardless generating the ctypes structure is the easy part,

emesare avatar Dec 24 '22 07:12 emesare

Found something promising! https://github.com/trolldbois/ctypeslib I will give it a try and report back.

emesare avatar Dec 24 '22 20:12 emesare