Esempio n. 1
0
 public void Dispose()
 {
     foreach (var b in _buffer)
     {
         ReceivedRange?.Invoke(this, b);
     }
     _buffer = null;
 }
Esempio n. 2
0
        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;
        }