文档

Unity Engine

Unity Engine

GetUnsafePtr()

Returns a pointer to the character bytes.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public readonly byte* GetUnsafePtr()

Returns

Type

Description

byte*A pointer to the character bytes.

Remarks

The pointer returned by this method points into the internals of the target FixedString object. It is the caller's responsibility to ensure that the pointer is not used after the FixedString object is destroyed or goes out of scope.