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

    Show / Hide Table of Contents

    Constructor NativeText

    NativeText(string, Allocator)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    [ExcludeFromBurstCompatTesting("Takes managed string")]
    public NativeText(string source, Allocator allocator)
    Parameters
    Type Name Description
    string source

    A string to copy characters from.

    Allocator allocator

    The allocator to use.

    NativeText(string, AllocatorHandle)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    [ExcludeFromBurstCompatTesting("Takes managed string")]
    public NativeText(string source, AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    string source

    A string to copy characters from.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    NativeText(int, Allocator)

    Initializes and returns an instance of NativeText.

    Declaration
    public NativeText(int capacity, Allocator allocator)
    Parameters
    Type Name Description
    int capacity

    The initial capacity in bytes.

    Allocator allocator

    The allocator to use.

    NativeText(int, AllocatorHandle)

    Initializes and returns an instance of NativeText.

    Declaration
    public NativeText(int capacity, AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    int capacity

    The initial capacity in bytes.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    NativeText(Allocator)

    Initializes and returns an instance of NativeText with an initial capacity of 512 bytes.

    Declaration
    public NativeText(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator

    The allocator to use.

    NativeText(AllocatorHandle)

    Initializes and returns an instance of NativeText with an initial capacity of 512 bytes.

    Declaration
    public NativeText(AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    NativeText(in FixedString32Bytes, AllocatorHandle)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString32Bytes source, AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    FixedString32Bytes source

    A string to copy characters from.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    NativeText(in FixedString32Bytes, Allocator)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString32Bytes source, Allocator allocator)
    Parameters
    Type Name Description
    FixedString32Bytes source

    A string to copy characters from.

    Allocator allocator

    The allocator to use.

    NativeText(in FixedString64Bytes, AllocatorHandle)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString64Bytes source, AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    FixedString64Bytes source

    A string to copy characters from.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    NativeText(in FixedString64Bytes, Allocator)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString64Bytes source, Allocator allocator)
    Parameters
    Type Name Description
    FixedString64Bytes source

    A string to copy characters from.

    Allocator allocator

    The allocator to use.

    NativeText(in FixedString128Bytes, AllocatorHandle)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString128Bytes source, AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    FixedString128Bytes source

    A string to copy characters from.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    NativeText(in FixedString128Bytes, Allocator)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString128Bytes source, Allocator allocator)
    Parameters
    Type Name Description
    FixedString128Bytes source

    A string to copy characters from.

    Allocator allocator

    The allocator to use.

    NativeText(in FixedString512Bytes, AllocatorHandle)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString512Bytes source, AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    FixedString512Bytes source

    A string to copy characters from.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    NativeText(in FixedString512Bytes, Allocator)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString512Bytes source, Allocator allocator)
    Parameters
    Type Name Description
    FixedString512Bytes source

    A string to copy characters from.

    Allocator allocator

    The allocator to use.

    NativeText(in FixedString4096Bytes, AllocatorHandle)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString4096Bytes source, AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    FixedString4096Bytes source

    A string to copy characters from.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    NativeText(in FixedString4096Bytes, Allocator)

    Initializes and returns an instance of NativeText with the characters copied from another string.

    Declaration
    public NativeText(in FixedString4096Bytes source, Allocator allocator)
    Parameters
    Type Name Description
    FixedString4096Bytes source

    A string to copy characters from.

    Allocator allocator

    The allocator to use.

    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)