NativeText
Initializes and returns an instance of NativeText with the characters copied from another string.
Read time 3 minutesLast updated 9 days ago
Definition
- Type: Constructor
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
NativeText(string, Allocator)
Initializes and returns an instance of NativeText with the characters copied from another string.
[ExcludeFromBurstCompatTesting("Takes managed string")]public NativeText(string source, Allocator allocator)
Parameters
NativeText(string, AllocatorHandle)
Initializes and returns an instance of NativeText with the characters copied from another string.
[ExcludeFromBurstCompatTesting("Takes managed string")]public NativeText(string source, AllocatorManager.AllocatorHandle allocator)
Parameters
NativeText(int, Allocator)
Initializes and returns an instance of NativeText.
public NativeText(int capacity, Allocator allocator)
Parameters
NativeText(int, AllocatorHandle)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(int capacity, AllocatorManager.AllocatorHandle allocator)
Parameters
NativeText(Allocator)
Initializes and returns an instance of NativeText with an initial capacity of 512 bytes.
public NativeText(Allocator allocator)
Parameters
The allocator to use.
NativeText(AllocatorHandle)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(AllocatorManager.AllocatorHandle allocator)
Parameters
The allocator to use.
NativeText(FixedString32Bytes, AllocatorHandle)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString32Bytes source, AllocatorManager.AllocatorHandle allocator)
Parameters
A string to copy characters from.
The allocator to use.
NativeText(FixedString32Bytes, Allocator)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString32Bytes source, Allocator allocator)
Parameters
NativeText(FixedString64Bytes, AllocatorHandle)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString64Bytes source, AllocatorManager.AllocatorHandle allocator)
Parameters
A string to copy characters from.
The allocator to use.
NativeText(FixedString64Bytes, Allocator)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString64Bytes source, Allocator allocator)
Parameters
NativeText(FixedString128Bytes, AllocatorHandle)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString128Bytes source, AllocatorManager.AllocatorHandle allocator)
Parameters
A string to copy characters from.
The allocator to use.
NativeText(FixedString128Bytes, Allocator)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString128Bytes source, Allocator allocator)
Parameters
NativeText(FixedString512Bytes, AllocatorHandle)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString512Bytes source, AllocatorManager.AllocatorHandle allocator)
Parameters
A string to copy characters from.
The allocator to use.
NativeText(FixedString512Bytes, Allocator)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString512Bytes source, Allocator allocator)
Parameters
NativeText(FixedString4096Bytes, AllocatorHandle)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString4096Bytes source, AllocatorManager.AllocatorHandle allocator)
Parameters
A string to copy characters from.
The allocator to use.
NativeText(FixedString4096Bytes, Allocator)
Initializes and returns an instance of NativeText with the characters copied from another string.
public NativeText(in FixedString4096Bytes source, Allocator allocator)