Skip to main content

Unity.Networking.Transport.Utilities.NativeListExt

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
public static class NativeListExt

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#

TypeNameDescription
NativeList\<T>listList that should be resized if sizeToFit >= its size
System.Int32sizeToFitRequested size that should fit into list

Type Parameters#

NameDescription
T