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