Example #1
0
 static int OpenFromMemory(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         IniUtil obj  = (IniUtil)ToLua.CheckObject(L, 1, typeof(IniUtil));
         byte[]  arg0 = ToLua.CheckByteBuffer(L, 2);
         bool    o    = obj.OpenFromMemory(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }