docs.unity3d.com
    Show / Hide Table of Contents

    Struct AtomicNode

    A node for use in an atomic collection

    Namespace: Unity.Media.Utilities
    Syntax
    public struct AtomicNode
    Remarks

    This must be external to AtomicFreeList<T> because it must be unmanaged

    Fields

    Next

    A pointer to the next node

    Declaration
    public long Next
    Field Value
    Type Description
    Int64

    Payload

    A pointer to the actual data managed by this node

    Declaration
    public long Payload
    Field Value
    Type Description
    Int64

    Methods

    Create(Int64, Int64, Allocator)

    Allocate a new AtomicNode with the provided payload and next pointers

    Declaration
    public static AtomicNode*Create(long payload = null, long next = null, Allocator allocator = null)
    Parameters
    Type Name Description
    Int64 payload

    The payload for the new node

    Int64 next

    The next pointer for the new node

    Allocator allocator

    The native allocator to use

    Returns
    Type Description
    AtomicNode*
    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