Direct access to the bytes of a serialized model

Is it possible to access the the bytes of a serialized model directly, without saving it to file first? We want to get access to the serialized bytes in program, e.g. by an address and size, so we can store it in our own data structure. Is this possible?

Thank you.

I don’t think you can get direct access to address but you can use stringstreams to save it to memory


Thank you for your answer, I work with Jim on a project and your answer was very helpful!

1 Like