Beispiel #1
0
 static int writeInt32(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         KBEngine.MemoryStream obj = (KBEngine.MemoryStream)ToLua.CheckObject <KBEngine.MemoryStream>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.writeInt32(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #2
0
 public void writeInt32(Int32 v)
 {
     checkStream(4);
     stream.writeInt32(v);
 }