static int Clear(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         GameFramework.ByteBuffer obj = (GameFramework.ByteBuffer)ToLua.CheckObject <GameFramework.ByteBuffer>(L, 1);
         obj.Clear();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 2
0
        public void Clear()
        {
            if (luaReceiveData != null)
            {
                luaReceiveData.Clear();
            }

            if (luaSendingData != null)
            {
                luaSendingData.Clear();
            }
            SendingData    = null;
            luaSendingData = null;
            ReceiveData    = null;
            luaReceiveData = null;
        }
Exemplo n.º 3
0
 /// <summary>
 /// 清除缓冲数据
 /// </summary>
 public void ClearCachedData()
 {
     sendedData.Clear();
 }