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

    Show / Hide Table of Contents

    Class UTF8ArrayUnsafeUtility

    Provides methods for copying and encoding Unicode text.

    Inheritance
    object
    UTF8ArrayUnsafeUtility
    Namespace: Unity.Collections
    Assembly: solution.dll
    Syntax
    public static class UTF8ArrayUnsafeUtility

    Methods

    Name Description
    Append(byte*, ref ushort, ushort, byte*, ushort)

    Appends UTF-8 text to a buffer.

    Append(byte*, ref ushort, ushort, char*, int)

    Appends UCS-2 text to a buffer, encoded as UTF-8.

    Append(char*, ref ushort, ushort, byte*, ushort)

    Appends UTF-8 text to a buffer, encoded as UCS-2.

    AppendUTF8Bytes(byte*, ref int, int, byte*, int)

    Appends UTF-8 text to a buffer.

    Copy(byte*, out int, int, byte*, int)

    Copies a buffer of UCS-8 text.

    Copy(byte*, out int, int, char*, int)

    Copies a buffer of UCS-2 text. The copy is encoded as UTF-8.

    Copy(byte*, out ushort, ushort, byte*, ushort)

    Copies a buffer of UCS-8 text.

    Copy(byte*, out ushort, ushort, char*, int)

    Copies a buffer of UCS-2 text. The copy is encoded as UTF-8.

    Copy(char*, out int, int, byte*, int)

    Copies a buffer of UTF-8 text. The copy is encoded as UCS-2.

    Copy(char*, out ushort, ushort, byte*, ushort)

    Copies a buffer of UTF-8 text. The copy is encoded as UCS-2.

    EqualsUTF8Bytes(byte*, int, byte*, int)

    Returns true if two UTF-8 buffers have the same length and content.

    StrCmp(byte*, int, byte*, int)

    Compares two UTF-8 buffers for relative equality.

    StrCmp(byte*, int, char*, int)

    Compares a UTF-8 buffer and a UTF-16 buffer for relative equality.

    StrCmp(char*, int, byte*, int)

    Compares a UTF-16 buffer and a UTF-8 buffer for relative equality.

    StrCmp(char*, int, char*, int)

    Compares two UTF-16 buffers for relative equality.

    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)