{!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 Utf8ToUcs | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Utf8ToUcs

    Utf8ToUcs(out Rune, byte*, ref int, int)

    Reads a UTF-8 encoded character from a buffer.

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

    Outputs the character read. If the read fails, outputs ReplacementCharacter.

    byte* buffer

    The buffer of bytes to read.

    int index

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

    int capacity

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

    Returns
    Type Description
    ConversionError

    None if the read succeeds. Otherwise, returns 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)