docs.unity.cn
    Show / Hide Table of Contents

    Class NativeListExt

    Inheritance
    Object
    NativeListExt
    Namespace: Unity.Networking.Transport.Utilities
    Syntax
    public static class NativeListExt : object

    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 © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, March 31, 2022
    Terms of use