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

    Struct UnsafeList

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

    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<T>(T, Allocator)

    Declaration
    public void Add<T>(T t, Allocator allocator = null)
        where T : struct
    Parameters
    Type Name Description
    T t
    Allocator allocator
    Type Parameters
    Name Description
    T

    AddRange<T>(Void*, Int32, Allocator)

    Declaration
    public void AddRange<T>(void *t, int count, Allocator allocator = null)
        where T : struct
    Parameters
    Type Name Description
    System.Void* t
    System.Int32 count
    Allocator allocator
    Type Parameters
    Name Description
    T

    Append<T>(UnsafeList)

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

    Contains<T>(T)

    Declaration
    public bool Contains<T>(T t)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    T t
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    Dispose<T>(Allocator)

    Declaration
    public void Dispose<T>(Allocator allocator = null)
        where T : struct
    Parameters
    Type Name Description
    Allocator allocator
    Type Parameters
    Name Description
    T

    IndexOf<T>(T)

    Declaration
    public int IndexOf<T>(T t)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    T t
    Returns
    Type Description
    System.Int32
    Type Parameters
    Name Description
    T

    RemoveAtSwapBack<T>(Int32)

    Declaration
    public void RemoveAtSwapBack<T>(int index)
        where T : struct
    Parameters
    Type Name Description
    System.Int32 index
    Type Parameters
    Name Description
    T

    RemoveAtSwapBack<T>(Int32, T)

    Declaration
    public void RemoveAtSwapBack<T>(int index, T t)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    System.Int32 index
    T t
    Type Parameters
    Name Description
    T

    RemoveRangeSwapBack<T>(Int32, Int32)

    Declaration
    public void RemoveRangeSwapBack<T>(int begin, int end)
        where T : struct
    Parameters
    Type Name Description
    System.Int32 begin
    System.Int32 end
    Type Parameters
    Name Description
    T

    Resize<T>(Int32, Allocator)

    Declaration
    public void Resize<T>(int targetSize, Allocator allocator = null)
        where T : struct
    Parameters
    Type Name Description
    System.Int32 targetSize
    Allocator allocator
    Type Parameters
    Name Description
    T

    SetCapacity<T>(Int32, Allocator)

    Declaration
    public void SetCapacity<T>(int targetCapacity, Allocator allocator = null)
        where T : struct
    Parameters
    Type Name Description
    System.Int32 targetCapacity
    Allocator allocator
    Type Parameters
    Name Description
    T

    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