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)); } }
public void Clear() { if (luaReceiveData != null) { luaReceiveData.Clear(); } if (luaSendingData != null) { luaSendingData.Clear(); } SendingData = null; luaSendingData = null; ReceiveData = null; luaReceiveData = null; }
/// <summary> /// 清除缓冲数据 /// </summary> public void ClearCachedData() { sendedData.Clear(); }