Table of Contents

Struct UnsafeList<T>.ParallelReader

Namespace
Misaki.HighPerformance.LowLevel.Collections
Assembly
Misaki.HighPerformance.LowLevel.dll

A Parallel reader for an UnsafeList.

public readonly struct UnsafeList<T>.ParallelReader
Inherited Members

Remarks

Use AsParallelReader() to create a parallel reader for a list. The list must live and the address of the list remain stable at least as long as the parallel reader, and the parallel reader must not be used after the list is disposed.

Fields

listData

public readonly UnsafeList<T>* listData

Field Value

UnsafeList<T>*

Properties

Count

public int Count { get; }

Property Value

int

this[int]

public ref readonly T this[int index] { get; }

Parameters

index int

Property Value

T

this[uint]

public ref readonly T this[uint index] { get; }

Parameters

index uint

Property Value

T

Methods

AsSpan()

public ReadOnlySpan<T> AsSpan()

Returns

ReadOnlySpan<T>

GetEnumerator()

public UnsafeList<T>.Enumerator GetEnumerator()

Returns

UnsafeList<T>.Enumerator