Table of Contents

Class NativeExtensions

Namespace
Root
Assembly
SPZGameAssembly.dll
public static class NativeExtensions
Inheritance
object
NativeExtensions

Methods

ToNativeArray<T>(T[], Allocator)

public static NativeArray<T> ToNativeArray<T>(this T[] array, Allocator allocator) where T : unmanaged

Parameters

array T[]
allocator Allocator

Returns

NativeArray<T>

Type Parameters

T

ToNativeList<TKey, TValue>(Enumerator, Allocator)

public static NativeList<TValue> ToNativeList<TKey, TValue>(this NativeParallelMultiHashMap<TKey, TValue>.Enumerator enumerator, Allocator allocator) where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged

Parameters

enumerator NativeParallelMultiHashMap<TKey, TValue>.Enumerator
allocator Allocator

Returns

NativeList<TValue>

Type Parameters

TKey
TValue