public void DequeueAllInto(FasterList <T> list) { int i = list.Count; list.ExpandBy((uint)_queue.Count); var array = list.ToArrayFast(); _lockQ.EnterWriteLock(); try { while (_queue.Count > 0) { array[i++] = _queue.Dequeue(); } } finally { _lockQ.ExitWriteLock(); } }
public void DequeueAllInto(FasterList <T> list) { LockQ.EnterWriteLock(); try { int i = list.Count; list.GrowAndSetCount(m_Queue.Count); var array = list.ToArrayFast(); while (m_Queue.Count > 0) { array[i++] = m_Queue.Dequeue(); } } finally { LockQ.ExitWriteLock(); } }
public void AddRange(FasterList <T> items) { AddRange(items.ToArrayFast(), items.Count); }
public void CopyValuesTo(FasterList <TValue> values) { values.ExpandTo((uint)_dict.count); CopyValuesTo(values.ToArrayFast(out _), 0); }
public void CopyTo(FasterList <TValue> transientEntitiesOperations) { transientEntitiesOperations.ExpandTo(_dict.count); CopyTo(transientEntitiesOperations.ToArrayFast()); }
public LocalFasterReadOnlyList(FasterList <T> list) { _list = list.ToArrayFast(out _count); }