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

    Show / Hide Table of Contents

    Method Append

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

    Appends UTF-8 text to a buffer.

    Declaration
    public static CopyError Append(byte* dest, ref ushort destLength, ushort destUTF8MaxLengthInBytes, byte* src, ushort srcLength)
    Parameters
    Type Name Description
    byte* dest

    The destination buffer.

    ushort destLength

    Reference to the destination buffer's length in bytes before the append. Will be assigned the number of bytes appended.

    ushort destUTF8MaxLengthInBytes

    The destination buffer's length in bytes. Data will not be appended past this length.

    byte* src

    The source buffer.

    ushort srcLength

    The number of bytes to read from the source.

    Returns
    Type Description
    CopyError

    None if the append fully completes. Otherwise, returns Truncation.

    Remarks

    Assumes the source data is valid UTF-8.

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

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

    Declaration
    public static CopyError Append(byte* dest, ref ushort destLength, ushort destUTF8MaxLengthInBytes, char* src, int srcLength)
    Parameters
    Type Name Description
    byte* dest

    The destination buffer.

    ushort destLength

    Reference to the destination buffer's length in bytes before the append. Will be assigned the number of bytes appended.

    ushort destUTF8MaxLengthInBytes

    The destination buffer's length in bytes. Data will not be appended past this length.

    char* src

    The source buffer.

    int srcLength

    The number of chars to read from the source.

    Returns
    Type Description
    CopyError

    None if the append fully completes. Otherwise, returns Truncation.

    Remarks

    Assumes the source data is valid UCS-2.

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

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

    Declaration
    public static CopyError Append(char* dest, ref ushort destLength, ushort destUCS2MaxLengthInChars, byte* src, ushort srcLength)
    Parameters
    Type Name Description
    char* dest

    The destination buffer.

    ushort destLength

    Reference to the destination buffer's length in chars before the append. Will be assigned the number of chars appended.

    ushort destUCS2MaxLengthInChars

    The destination buffer's length in chars. Data will not be appended past this length.

    byte* src

    The source buffer.

    ushort srcLength

    The number of bytes to read from the source.

    Returns
    Type Description
    CopyError

    None if the append fully completes. Otherwise, returns Truncation.

    Remarks

    Assumes the source data is valid UTF-8.

    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)