Struct NativeList<T>.ParallelWriter | Collections | 0.7.1-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct NativeList<T>.ParallelWriter

    Namespace: Unity.Collections
    Syntax
    public struct ParallelWriter

    Constructors

    ParallelWriter(Void*, UnsafeList*)

    Declaration
    public ParallelWriter(void *ptr, UnsafeList*listData)
    Parameters
    Type Name Description
    Void* ptr
    UnsafeList* listData

    Fields

    ListData

    Declaration
    public UnsafeList*ListData
    Field Value
    Type Description
    UnsafeList*

    Ptr

    Declaration
    public readonly void *Ptr
    Field Value
    Type Description
    Void*

    Methods

    AddNoResize(T)

    Adds an element to the list.

    Declaration
    public void AddNoResize(T value)
    Parameters
    Type Name Description
    T value

    The value to be added at the end of the list.

    Remarks

    If the list has reached its current capacity, internal array won't be resized, and exception will be thrown.

    AddRangeNoResize(Void*, Int32)

    Adds elements from a buffer to this list.

    Declaration
    public void AddRangeNoResize(void *ptr, int length)
    Parameters
    Type Name Description
    Void* ptr

    A pointer to the buffer.

    Int32 length

    The number of elements to add to the list.

    Remarks

    If the list has reached its current capacity, internal array won't be resized, and exception will be thrown.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown if length is negative.

    AddRangeNoResize(UnsafeList)

    Adds elements from a list to this list.

    Declaration
    public void AddRangeNoResize(UnsafeList list)
    Parameters
    Type Name Description
    UnsafeList list
    Remarks

    If the list has reached its current capacity, internal array won't be resized, and exception will be thrown.

    AddRangeNoResize(NativeList<T>)

    Adds elements from a list to this list.

    Declaration
    public void AddRangeNoResize(NativeList<T> list)
    Parameters
    Type Name Description
    NativeList<T> list
    Remarks

    If the list has reached its current capacity, internal array won't be resized, and exception will be thrown.

    Extension Methods

    JobNativeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobNativeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023