@@ -36,8 +36,8 @@ struct Restore;
3636typedef std::vector<char > buffer_t ;
3737
3838/* *
39- * The beginning and the end of the LiveUpdate process is the begin () and resume() functions.
40- * begin () is called with a provided fixed memory location for where to store all serialized data,
39+ * The beginning and the end of the LiveUpdate process is the exec () and resume() functions.
40+ * exec () is called with a provided fixed memory location for where to store all serialized data,
4141 * and after an update is_resumable, with the same fixed memory location, will return true.
4242 * resume() can then be called with this same location, and it will call handlers for each @id it finds,
4343 * unless no such handler is registered, in which case it just calls the default handler which is passed
@@ -55,10 +55,10 @@ struct LiveUpdate
5555
5656 // Start a live update process, storing all user-defined data
5757 // If no storage function is provided no state will be saved
58- static void begin ( buffer_t blob);
58+ static void exec ( const buffer_t & blob);
5959
60- // In the event that LiveUpdate::begin () fails,
61- // call this function in the C++ exception handler :
60+ // In the event that LiveUpdate::exec () fails,
61+ // call this function in the C++ exception catch scope :
6262 static void restore_environment ();
6363
6464 // Only store user data, as if there was a live update process
@@ -105,7 +105,7 @@ struct LiveUpdate
105105
106106/* *
107107 * The Storage object is passed to the user from the handler given to the
108- * call to begin (), starting the liveupdate process. When the handler is
108+ * call to exec (), starting the liveupdate process. When the handler is
109109 * called the system is ready to serialize data into the given @location.
110110 * By using the various add_* functions, the user stores data with @uid
111111 * as a marker to be able to recognize the object when restoring data.
@@ -146,16 +146,14 @@ struct Storage
146146};
147147
148148/* *
149- * A Restore object is given to the user by restore handlers ,
149+ * A Restore object is given to the user in a restore handler ,
150150 * during the resume() process. The user should know what type
151151 * each id is, and call the correct as_* function. The object
152152 * will still be validated, and an error is thrown if there was
153- * a type mismatch in most cases.
153+ * a type mismatch in some cases.
154154 *
155- * It's possible to restore many objects from the same handler by
156- * using go_next(). In that way, a user can restore complicated objects
157- * completely without leaving the handler. go_next() will throw if there
158- * is no next object to go to.
155+ * Use go_next() on the Restore& object to go to the next
156+ * deserializable object in the storage.
159157 *
160158**/
161159struct Restore
0 commit comments