Struct UnsafeList<T>.ParallelWriter
- Namespace
- Misaki.HighPerformance.LowLevel.Collections
- Assembly
- Misaki.HighPerformance.LowLevel.dll
A parallel writer for an UnsafeList.
public readonly struct UnsafeList<T>.ParallelWriter
- Inherited Members
Remarks
Use AsParallelWriter() to create a parallel writer for a list. The list must live and the address of the list remain stable at least as long as the parallel writer, and the parallel writer must not be used after the list is disposed.
Fields
listData
public readonly UnsafeList<T>* listData
Field Value
- UnsafeList<T>*
Methods
AddNoResize(scoped in T)
Adds a value to a collection without resizing it, ensuring capacity is checked before insertion.
public void AddNoResize(scoped in T value)
Parameters
valueTThe value to be added to the collection.
AddRangeNoResize(ReadOnlySpan<T>, int)
Adds a specified number of elements from a pointer to a buffer without resizing the underlying storage.
public void AddRangeNoResize(ReadOnlySpan<T> collection, int count)
Parameters
collectionReadOnlySpan<T>countintIndicates the number of elements to be added from the source data.