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

    Show / Hide Table of Contents

    Constructor FixedString32Bytes

    FixedString32Bytes(string)

    Initializes and returns an instance of FixedString32Bytes with the characters copied from a string.

    Declaration
    [ExcludeFromBurstCompatTesting("Takes managed string")]
    public FixedString32Bytes(string source)
    Parameters
    Type Name Description
    string source

    The source string to copy.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString32Bytes.

    FixedString32Bytes(Rune, int)

    Initializes and returns an instance of FixedString32Bytes with a single character repeatedly appended some number of times.

    Declaration
    public FixedString32Bytes(Unicode.Rune rune, int count = 1)
    Parameters
    Type Name Description
    Unicode.Rune rune

    The Unicode.Rune to repeat.

    int count

    The number of times to repeat the character. Default is 1.

    FixedString32Bytes(ReadOnly)

    Initializes and returns an instance of FixedString32Bytes that is a copy of another string.

    Declaration
    public FixedString32Bytes(NativeText.ReadOnly other)
    Parameters
    Type Name Description
    NativeText.ReadOnly other

    The string to copy.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString32Bytes.

    FixedString32Bytes(in UnsafeText)

    Initializes and returns an instance of FixedString32Bytes that is a copy of another string.

    Declaration
    public FixedString32Bytes(in UnsafeText other)
    Parameters
    Type Name Description
    UnsafeText other

    The UnsafeText to copy.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString32Bytes.

    FixedString32Bytes(in FixedString32Bytes)

    Initializes and returns an instance of FixedString32Bytes that is a copy of another string.

    Declaration
    public FixedString32Bytes(in FixedString32Bytes other)
    Parameters
    Type Name Description
    FixedString32Bytes other

    The string to copy.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString32Bytes.

    FixedString32Bytes(in FixedString64Bytes)

    Initializes and returns an instance of FixedString32Bytes that is a copy of another string.

    Declaration
    public FixedString32Bytes(in FixedString64Bytes other)
    Parameters
    Type Name Description
    FixedString64Bytes other

    The string to copy.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString32Bytes.

    FixedString32Bytes(in FixedString128Bytes)

    Initializes and returns an instance of FixedString32Bytes that is a copy of another string.

    Declaration
    public FixedString32Bytes(in FixedString128Bytes other)
    Parameters
    Type Name Description
    FixedString128Bytes other

    The string to copy.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString32Bytes.

    FixedString32Bytes(in FixedString512Bytes)

    Initializes and returns an instance of FixedString32Bytes that is a copy of another string.

    Declaration
    public FixedString32Bytes(in FixedString512Bytes other)
    Parameters
    Type Name Description
    FixedString512Bytes other

    The string to copy.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString32Bytes.

    FixedString32Bytes(in FixedString4096Bytes)

    Initializes and returns an instance of FixedString32Bytes that is a copy of another string.

    Declaration
    public FixedString32Bytes(in FixedString4096Bytes other)
    Parameters
    Type Name Description
    FixedString4096Bytes other

    The string to copy.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString32Bytes.

    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)