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