Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

BurstRuntime.GetUTF8LiteralPointer

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static byte* GetUTF8LiteralPointer(string str, out int byteCount);

Parameters

Parameter Description
str A string which must a string literal
byteCount Receives the number of UTF-8 encoded bytes the constant contains (excluding null terminator)

Returns

byte* A pointer to constant data representing the UTF-8 encoded bytes of the string literal, terminated with a null terminator

Description

Return a pointer to read-only memory consisting of the literal UTF-8 bytes of a string constant.