TryResize(int, NativeArrayOptions)
Attempt to set the length in bytes of this IUTF8Bytes's content buffer.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
bool TryResize(int newLength, NativeArrayOptions clearOptions = NativeArrayOptions.ClearMemory)
Parameters
The new length in bytes of the IUTF8Bytes's content buffer.
Whether any bytes added should be zeroed out.
Returns
Type | Description |
|---|---|
| bool | True if the new length is valid. |