![]() Without having to parse each message individually. ![]() Union_name->structure_name.field_name // when passed a pointer to the union The reception protocol sorts out getting the message and making sure it's valid - for which it needs to know nothing about the structure contents - and then individual messages parts can be accessed using I have used them to manage a messaging bitstream where a number of different messages share a common header but completely different data structures: Each message type has a structure describing it the union is a union of all the possible messages. ![]() ![]() Jgmdesign wrote: I will do more research on Structures and unions as they are probably far more eloquent in many applications. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |