Examples of LloadBuffer()


Examples of org.keplerproject.luajava.LuaState.LloadBuffer()

    FileInputStream input = new FileInputStream("wrongLuaFile.lua");
    byte[] bytes = new byte[input.available()];
    input.read(bytes);
    input.close();
   
    loadRes = L.LloadBuffer(bytes, "test");
    assertEquals(LuaState.LUA_ERRSYNTAX.intValue(), loadRes);
    System.out.println(L.toString(-1));
   
    input = new FileInputStream("simpleLuaFile.lua");
    bytes = new byte[input.available()];
View Full Code Here

Examples of org.keplerproject.luajava.LuaState.LloadBuffer()

    input = new FileInputStream("simpleLuaFile.lua");
    bytes = new byte[input.available()];
    input.read(bytes);
    input.close();
   
    loadRes = L.LloadBuffer(bytes, "test2");
    assertEquals(0, loadRes);
    L.pcall(0, 0, 0);
   
    L.close();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.