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