Example #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;
			}
		}
Example #2
0
		public CSPkg()
		{
			this.stPkgHead = (CSPkgHead)ProtocolObjectPool.Get(CSPkgHead.CLASS_ID);
			this.stPkgData = (CSPkgBody)ProtocolObjectPool.Get(CSPkgBody.CLASS_ID);
		}
Example #3
0
		public override void OnUse()
		{
			this.ClearVariables();
			this.stPkgHead = (CSPkgHead)ProtocolObjectPool.Get(CSPkgHead.CLASS_ID);
			this.stPkgData = (CSPkgBody)ProtocolObjectPool.Get(CSPkgBody.CLASS_ID);
		}