Constructor FixedString512Bytes
FixedString512Bytes(string)
Initializes and returns an instance of FixedString512Bytes with the characters copied from a string.
Declaration
[ExcludeFromBurstCompatTesting("Takes managed string")]
public FixedString512Bytes(string source)
Parameters
Type | Name | Description |
---|---|---|
string | source | The source string to copy. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes. |
FixedString512Bytes(Rune, int)
Initializes and returns an instance of FixedString512Bytes with a single character repeatedly appended some number of times.
Declaration
public FixedString512Bytes(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. |
FixedString512Bytes(ReadOnly)
Initializes and returns an instance of FixedString512Bytes that is a copy of another string.
Declaration
public FixedString512Bytes(NativeText.ReadOnly other)
Parameters
Type | Name | Description |
---|---|---|
Native |
other | The string to copy. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes. |
FixedString512Bytes(in UnsafeText)
Initializes and returns an instance of FixedString512Bytes that is a copy of another string.
Declaration
public FixedString512Bytes(in UnsafeText other)
Parameters
Type | Name | Description |
---|---|---|
Unsafe |
other | The UnsafeText to copy. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes. |
FixedString512Bytes(in FixedString32Bytes)
Initializes and returns an instance of FixedString512Bytes that is a copy of another string.
Declaration
public FixedString512Bytes(in FixedString32Bytes other)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
other | The string to copy. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes. |
FixedString512Bytes(in FixedString64Bytes)
Initializes and returns an instance of FixedString512Bytes that is a copy of another string.
Declaration
public FixedString512Bytes(in FixedString64Bytes other)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
other | The string to copy. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes. |
FixedString512Bytes(in FixedString128Bytes)
Initializes and returns an instance of FixedString512Bytes that is a copy of another string.
Declaration
public FixedString512Bytes(in FixedString128Bytes other)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
other | The string to copy. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes. |
FixedString512Bytes(in FixedString512Bytes)
Initializes and returns an instance of FixedString512Bytes that is a copy of another string.
Declaration
public FixedString512Bytes(in FixedString512Bytes other)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
other | The string to copy. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes. |
FixedString512Bytes(in FixedString4096Bytes)
Initializes and returns an instance of FixedString512Bytes that is a copy of another string.
Declaration
public FixedString512Bytes(in FixedString4096Bytes other)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
other | The string to copy. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes. |