Resize(int, NativeArrayOptions)
Sets the length, expanding the capacity if necessary.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public void Resize(int length, NativeArrayOptions options = NativeArrayOptions.UninitializedMemory)
Parameters
The new length.
Whether newly allocated bytes should be zeroed out.