docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator FixedString64Bytes(in FixedString32Bytes)

    Returns a new FixedString64Bytes that is a copy of another string.

    Declaration
    public static implicit operator FixedString64Bytes(in FixedString32Bytes fs)
    Parameters
    Type Name Description
    FixedString32Bytes fs

    A FixedString32Bytes to copy.

    Returns
    Type Description
    FixedString64Bytes

    A new FixedString64Bytes that is a copy of the other string.

    Exceptions
    Type Condition
    ArgumentException

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

    implicit operator FixedString128Bytes(in FixedString32Bytes)

    Returns a new FixedString128Bytes that is a copy of another string.

    Declaration
    public static implicit operator FixedString128Bytes(in FixedString32Bytes fs)
    Parameters
    Type Name Description
    FixedString32Bytes fs

    A FixedString32Bytes to copy.

    Returns
    Type Description
    FixedString128Bytes

    A new FixedString128Bytes that is a copy of the other string.

    Exceptions
    Type Condition
    ArgumentException

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

    implicit operator FixedString512Bytes(in FixedString32Bytes)

    Returns a new FixedString512Bytes that is a copy of another string.

    Declaration
    public static implicit operator FixedString512Bytes(in FixedString32Bytes fs)
    Parameters
    Type Name Description
    FixedString32Bytes fs

    A FixedString32Bytes to copy.

    Returns
    Type Description
    FixedString512Bytes

    A new FixedString512Bytes that is a copy of the other string.

    Exceptions
    Type Condition
    ArgumentException

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

    implicit operator FixedString4096Bytes(in FixedString32Bytes)

    Returns a new FixedString4096Bytes that is a copy of another string.

    Declaration
    public static implicit operator FixedString4096Bytes(in FixedString32Bytes fs)
    Parameters
    Type Name Description
    FixedString32Bytes fs

    A FixedString32Bytes to copy.

    Returns
    Type Description
    FixedString4096Bytes

    A new FixedString4096Bytes that is a copy of the other string.

    Exceptions
    Type Condition
    ArgumentException

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

    implicit operator FixedString32Bytes(string)

    Returns a new FixedString32Bytes that is a copy of another string.

    Declaration
    [ExcludeFromBurstCompatTesting("Takes managed string")]
    public static implicit operator FixedString32Bytes(string b)
    Parameters
    Type Name Description
    string b

    A string to copy.

    Returns
    Type Description
    FixedString32Bytes

    A new FixedString32Bytes that is a copy of another string.

    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)