How can I write my own serialize/deserialize functions?

Note: Relevant RTI Connext versions: NDDS 3.x, RTI Connext 4.x and above

You may want to use your own serialize/deserialize functions if there are existing message formats and data structures that you want to keep. In this case, the fastest way to take advantage of RTI Connext’s cross-platform feature—without having to rebuild the entire set of data structures—is to pass serialized octet sequences of these structures through RTI Connext.

See example attached.