docs.unity3d.com
    Show / Hide Table of Contents

    Method GetUTF8LiteralPointer

    GetUTF8LiteralPointer(String, out Int32)

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

    Declaration
    public static byte *GetUTF8LiteralPointer(string str, out int byteCount)
    Parameters
    Type Name Description
    String str

    A string which must a string literal

    Int32 byteCount

    Receives the number of UTF-8 encoded bytes the constant contains (excluding null terminator)

    Returns
    Type Description
    Byte*

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

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023