[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Lua persistence library?
- From: Chuck Messenger <cmessenger@...>
- Date: Tue, 24 Apr 2001 15:12:37 -0400
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
lua_restore() would regenerate the Lua VM state from the
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?