Пример #1
0
 static int writeBlob(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         KBEngine.MemoryStream obj = (KBEngine.MemoryStream)ToLua.CheckObject <KBEngine.MemoryStream>(L, 1);
         byte[] arg0 = ToLua.CheckByteBuffer(L, 2);
         obj.writeBlob(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #2
0
 public void writeBlob(byte[] v)
 {
     checkStream(v.Length + 4);
     stream.writeBlob(v);
 }