I\'m developing network protocol. I have a lot of non-polimorphic structures. I need to pass input structure to packet with its id(unique number of structure) and serialize