nl.weeaboo.lua2.io.LuaSerializer Maven / Gradle / Ivy
package nl.weeaboo.lua2.io;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
/**
* Reads/writes Lua objects to a binary stream.
*/
public class LuaSerializer {
private static final ThreadLocal CURRENT = new ThreadLocal<>();
private final Environment env;
private final List