MFC "Serialization" equivalent in QNX.

How to do “serialization” in QNX? I want to make stream of bytes as persistent.

This is a C++ question. Has nothing to do with QNX.

There are so many ways to do this. From rolling your own to buying a library packages that will take the content of a C++ class and save it to a XML file, with almost no extra code.