Struct UnsafePtrList | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct UnsafePtrList

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

    Fields

    m_capacity

    Declaration
    public int m_capacity
    Field Value
    Type Description
    System.Int32

    m_pointer

    Declaration
    public void **m_pointer
    Field Value
    Type Description
    System.Void**

    m_size

    Declaration
    public int m_size
    Field Value
    Type Description
    System.Int32

    Methods

    Add(Void*, Allocator)

    Declaration
    public void Add(void *t, Allocator allocator = null)
    Parameters
    Type Name Description
    System.Void* t
    Allocator allocator

    Append(UnsafePtrList)

    Declaration
    public void Append(UnsafePtrList src)
    Parameters
    Type Name Description
    UnsafePtrList src

    Contains(Void*)

    Declaration
    public bool Contains(void *t)
    Parameters
    Type Name Description
    System.Void* t
    Returns
    Type Description
    System.Boolean

    Dispose(Allocator)

    Declaration
    public void Dispose(Allocator allocator = null)
    Parameters
    Type Name Description
    Allocator allocator

    GetUnsafeList()

    Declaration
    public UnsafeList GetUnsafeList()
    Returns
    Type Description
    UnsafeList

    IndexOf(Void*)

    Declaration
    public int IndexOf(void *t)
    Parameters
    Type Name Description
    System.Void* t
    Returns
    Type Description
    System.Int32

    RemoveAtSwapBack(Int32)

    Declaration
    public void RemoveAtSwapBack(int index)
    Parameters
    Type Name Description
    System.Int32 index

    RemoveAtSwapBack(Int32, Void*)

    Declaration
    public void RemoveAtSwapBack(int index, void *expectedValue)
    Parameters
    Type Name Description
    System.Int32 index
    System.Void* expectedValue

    RemoveRangeSwapBack(Int32, Int32)

    Declaration
    public void RemoveRangeSwapBack(int begin, int end)
    Parameters
    Type Name Description
    System.Int32 begin
    System.Int32 end

    Resize(Int32, Allocator)

    Declaration
    public void Resize(int targetSize, Allocator allocator = null)
    Parameters
    Type Name Description
    System.Int32 targetSize
    Allocator allocator

    SetCapacity(Int32, Allocator)

    Declaration
    public void SetCapacity(int targetCapacity, Allocator allocator = null)
    Parameters
    Type Name Description
    System.Int32 targetCapacity
    Allocator allocator

    Extension Methods

    JobNativeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobNativeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<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