docs.unity3d.com
    Show / Hide Table of Contents

    Class NativeListExt

    Provides Extension methods for the class

    Inheritance
    Object
    NativeListExt
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Networking.Transport.Utilities
    Syntax
    public static class NativeListExt

    Methods

    ResizeUninitializedTillPowerOf2<T>(NativeList<T>, Int32)

    This function will make sure that can fit into . If >= 's Length then will be ResizeUninitialized to a new length. New Length will be the next highest power of 2 of

    Declaration
    public static void ResizeUninitializedTillPowerOf2<T>(this NativeList<T> list, int sizeToFit)
        where T : struct
    Parameters
    Type Name Description
    NativeList<T> list

    List that should be resized if sizeToFit >= its size

    Int32 sizeToFit

    Requested size that should fit into list

    Type Parameters
    Name Description
    T
    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