TryResize(int, NativeArrayOptions)
Attempt to set the length in bytes of this string. For NativeText.ReadOnly this function is a no-op and always returns false.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public bool TryResize(int newLength, NativeArrayOptions clearOptions = NativeArrayOptions.ClearMemory)
Parameters
The new length in bytes of the string.
Whether any bytes added should be zeroed out.
Returns
Type | Description |
|---|---|
| bool | Always false. |