Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetStringUTFLength(nint)

Returns the length in bytes of the modified UTF-8 representation of a string.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

GetStringUTFLength(IntPtr)

public static int GetStringUTFLength(nint str)

Parameters

The Java string.

Returns

Type

Description

intThe length, in bytes, of the modified UTF-8 representation of the string.

Remarks