文档

Unity Engine

Unity Engine

UnsafeParallelHashMap<TKey, TValue>.ParallelWriter

A parallel writer for a NativeParallelHashMap.
阅读时间1 分钟最后更新于 1 个月前

Definition

public struct UnsafeParallelHashMap<TKey, TValue>.ParallelWriter

Remarks

Use UnsafeParallelHashMap<TKey, TValue>.AsParallelWriter to create a parallel writer for a NativeParallelHashMap.

Properties

Property

Description

CapacityThe number of key-value pairs that fit in the current allocation.
ThreadIndexReturns the index of the current thread.

Methods

Method

Description

AddAdds a new key-value pair.
TryAddAdds a new key-value pair.