[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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
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?
- Chuck