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