|
On Tuesday, April 24, 2001, at 12:12 PM, Chuck Messenger wrote:
Is there a Lua persistence library? What I'd like is to have: int lua_save(lua_State *L, char *buf, int len); lua_State *lua_restore(char *buf, int len); lua_save() would write the existing VM state to buf (which is len bytes long). It would return the number of bytes used. lua_restore() would regenerate the Lua VM state from the same buffer. It would be cross-platform -- that is, you could save the state on, say, a Mac, and restore it on a PC. Is there anything like this out there?
That would be a great feature. Steve