{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method UcsToUtf16 | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UcsToUtf16

    UcsToUtf16(char*, ref int, int, Rune)

    Writes a rune to a buffer as a UTF-16 encoded character.

    Declaration
    public static ConversionError UcsToUtf16(char* buffer, ref int index, int capacity, Unicode.Rune rune)
    Parameters
    Type Name Description
    char* buffer

    The buffer of chars to write to.

    int index

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

    int capacity

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

    Unicode.Rune rune

    The rune to encode.

    Returns
    Type Description
    ConversionError

    None if the write succeeds. Otherwise, returns CodePoint, Overflow, or Encoding.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)