protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (this.decompressor != null) { this.decompressor.Dispose(); this.decompressor = null; } } }
internal void ProcessData(byte[] payload, int payloadLength) { if (!this.isPrepared) { this.isPrepared = true; base.BeginReceiveStreamFragments(); } if (this.IsCompressed) { if (this.decompressor == null) { this.decompressor = new Decompression.GZipDecompressor(0); } var result = this.decompressor.Decompress(payload, 0, payloadLength, true, true); base.FeedStreamFragment(result.Data, 0, result.Length); } else { base.FeedStreamFragment(payload, 0, payloadLength); } }