기술 자료

Unity Engine

Unity Engine

TryResize(int, NativeArrayOptions)

Attempt to set the length in bytes of this IUTF8Bytes's content buffer.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
bool TryResize(int newLength, NativeArrayOptions clearOptions = NativeArrayOptions.ClearMemory)

Parameters

newLength

The new length in bytes of the IUTF8Bytes's content buffer.

clearOptions

Whether any bytes added should be zeroed out.

Returns

Type

Description

boolTrue if the new length is valid.