public void Dispose() { foreach (var b in _buffer) { ReceivedRange?.Invoke(this, b); } _buffer = null; }
internal void AddToRange(Operation operation, ushort value) { if (_indexes[operation] == _buffer[operation].Length) { ReceivedRange?.Invoke(this, new KeyValuePair <Operation, ushort[]>(operation, _buffer[operation])); _indexes[operation] = 0; } _buffer[operation][_indexes[operation]++] = value; }