OpenDOF Project
DOSContext_Saved DOSContext_Save ( void  )

Save context (including any data in the send buffer) so the application can make additional requests and/or send signal/change/advertise without losing the current context data.

It is strongly recommended to call DOSContext_Clear() immediately after to ensure the context is ready for a new request. Changes made to the context after it is saved will be lost when the context is restored. The context can be restored via DOSContext_Restore().

Note
This will call your allocator callback with the DOSMEMORYHINT_CONTEXT_SAVE hint. An optimization is to simply have a single one of these statically allocated and return it. Most applications would not need to use more than one at a time.
Returns
The saved context. Be sure to call DOSContext_Restore on this to free the memory.
core-c-cos Version 7.0.1 Build 0
2018-02-08