Class NativeListExt
Inherited Members
Namespace: Unity.Networking.Transport.Utilities
Syntax
public static class NativeListExt
Methods
ResizeUninitializedTillPowerOf2<T>(NativeList<T>, Int32)
This function will make sure that
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 |