Hi all, so in general we have the situation in which we usually have either BigEndian or LittleEndian encoding. Or we have dynamic encoding based on data in the packet itself (PROFINET). Now Ben added something I think we’ll be needing on other drivers too (Modbus) … that the encoding is passed in from the outside.
He solved this by passing in a custom type to the Parser and relying on this being saved in an artificial ParserArgument-Field. I’m not a big fan of storing parser arguments in fields to be able to access them when serializing, because it sort of adds clutter to the model. I would love to change things in a way, that if a parser argument of type “ByteEncoding” is defined, that this field is also automatically added to the serializer. What do you folks think? Chris
