예제 #1
0
 static int writer(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         int       arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
         byte[]    arg1 = ToLua.CheckByteBuffer(L, 2);
         ByteArray o    = NetFramework.writer(arg0, arg1);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }