Method TryResize
TryResize(int, NativeArrayOptions)
Attempt to set the length in bytes of this IUTF8Bytes's content buffer.
Declaration
bool TryResize(int newLength, NativeArrayOptions clearOptions = NativeArrayOptions.ClearMemory)
Parameters
| Type | Name | Description |
|---|---|---|
| int | newLength | The new length in bytes of the IUTF8Bytes's content buffer. |
| NativeArrayOptions | clearOptions | Whether any bytes added should be zeroed out. |
Returns
| Type | Description |
|---|---|
| bool | True if the new length is valid. |