[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua persistence library?
- From: Steve Dekorte <steve@...>
- Date: Tue, 24 Apr 2001 16:08:25 -0700
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
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?
That would be a great feature.