기술 자료

Unity Engine

Unity Engine

UcsToUtf8(byte*, ref int, int, Rune)

Writes a rune to a buffer as a UTF-8 encoded character.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

UcsToUtf8(byte*, int, int, Rune)

public static ConversionError UcsToUtf8(byte* buffer, ref int index, int capacity, Unicode.Rune rune)

Parameters

buffer

The buffer to write to.

index

Reference to a byte index into the buffer. If the write succeeds, index is incremented by the size in bytes of the character written. If the write fails, index is not incremented.

capacity

The size in bytes of the buffer. Used to check that the write is in bounds.

rune

The rune to encode.

Returns