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. |