protected override void Dispose(bool disposing) { if (!Disposed) { if (disposing) { _keyMap.Clear(); _keyClockEncoder.Dispose(); _clientEncoder.Dispose(); _leftClockEncoder.Dispose(); _rightClockEncoder.Dispose(); _infoEncoder.Dispose(); _stringEncoder.Dispose(); _parentInfoEncoder.Dispose(); _typeRefEncoder.Dispose(); _lengthEncoder.Dispose(); } _keyMap = null; _keyClockEncoder = null; _clientEncoder = null; _leftClockEncoder = null; _rightClockEncoder = null; _infoEncoder = null; _stringEncoder = null; _parentInfoEncoder = null; _typeRefEncoder = null; _lengthEncoder = null; } base.Dispose(disposing); }
public UpdateEncoderV2() { _keyClock = 0; _keyMap = new Dictionary <string, int>(); _keyClockEncoder = new IntDiffOptRleEncoder(); _clientEncoder = new UintOptRleEncoder(); _leftClockEncoder = new IntDiffOptRleEncoder(); _rightClockEncoder = new IntDiffOptRleEncoder(); _infoEncoder = new RleEncoder(); _stringEncoder = new StringEncoder(); _parentInfoEncoder = new RleEncoder(); _typeRefEncoder = new UintOptRleEncoder(); _lengthEncoder = new UintOptRleEncoder(); }