Pythonのライブラリ struct は各値をバイト単位でしか保存。この弊害として、構造体中に冗長なメモリ領域が発生してしまう。 Structはファイルに書き込むことを想定して整数バイトにしている。対して、Memberは1ビット単位で自分のサイズを指定できる。
This project provides a graphical user interface (GUI) tool built with Python and Tkinter to parse the memory layout of a C++ struct. It has been refactored to follow the Model-View-Presenter (MVP) ...
struct_cpp is a C++20, header-only, constexpr clone of Python's struct module, a fork of [karkason/cppystruct](https://github.com/karkason/cppystruct) ...