Struct UnsafeList.ParallelWriter | Collections | 0.6.0-preview.9
docs.unity.cn
    Show / Hide Table of Contents

    Struct UnsafeList.ParallelWriter

    Namespace: Unity.Collections.LowLevel.Unsafe
    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>(T)

    Adds an element to the list.

    Declaration
    public void AddNoResize<T>(T value)
        where T : struct
    Parameters
    Type Name Description
    T value

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

    Type Parameters
    Name Description
    T

    Source type of elements

    Remarks

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

    AddRangeNoResize<T>(Void*, Int32)

    Adds elements from a buffer to this list.

    Declaration
    public void AddRangeNoResize<T>(void *ptr, int length)
        where T : struct
    Parameters
    Type Name Description
    Void* ptr

    A pointer to the buffer.

    Int32 length

    The number of elements to add to the list.

    Type Parameters
    Name Description
    T

    Source type of elements

    Remarks

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

    AddRangeNoResize<T>(UnsafeList)

    Adds elements from a list to this list.

    Declaration
    public void AddRangeNoResize<T>(UnsafeList list)
        where T : struct
    Parameters
    Type Name Description
    UnsafeList list
    Type Parameters
    Name Description
    T

    Source type of elements

    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 © 2020 Unity Technologies
    Generated by DocFX