Esempio n. 1
0
		private void ClearVariables()
		{
			if (this.stPkgHead != null)
			{
				this.stPkgHead.Release();
				this.stPkgHead = null;
			}
			if (this.stPkgData != null)
			{
				this.stPkgData.Release();
				this.stPkgData = null;
			}
		}
Esempio n. 2
0
		public CSPkg()
		{
			this.stPkgHead = (CSPkgHead)ProtocolObjectPool.Get(CSPkgHead.CLASS_ID);
			this.stPkgData = (CSPkgBody)ProtocolObjectPool.Get(CSPkgBody.CLASS_ID);
		}
Esempio n. 3
0
		public override void OnUse()
		{
			this.ClearVariables();
			this.stPkgHead = (CSPkgHead)ProtocolObjectPool.Get(CSPkgHead.CLASS_ID);
			this.stPkgData = (CSPkgBody)ProtocolObjectPool.Get(CSPkgBody.CLASS_ID);
		}