Struct UnsafeList.ParallelWriter | Collections | 0.11.0-preview.17
docs.unity3d.com
    Show / Hide Table of Contents

    Struct UnsafeList.ParallelWriter

    Namespace: Unity.Collections.LowLevel.Unsafe
    Syntax
    public struct ParallelWriter

    Fields

    ListData

    Declaration
    [NativeDisableUnsafePtrRestriction]
    public UnsafeList*ListData
    Field Value
    Type Description
    UnsafeList*

    Ptr

    Declaration
    [NativeDisableUnsafePtrRestriction]
    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

    Other container to copy elements from.

    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.

    In This Article
    • Fields
      • ListData
      • Ptr
    • Methods
      • AddNoResize<T>(T)
      • AddRangeNoResize<T>(Void*, Int32)
      • AddRangeNoResize<T>(UnsafeList)
    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