Operator implicit operator
implicit operator FixedString512Bytes(in FixedString128Bytes)
Returns a new FixedString512Bytes that is a copy of another string.
Declaration
public static implicit operator FixedString512Bytes(in FixedString128Bytes fs)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
fs | A FixedString128Bytes to copy. |
Returns
Type | Description |
---|---|
Fixed |
A new FixedString512Bytes that is a copy of the other string. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes. |
implicit operator FixedString4096Bytes(in FixedString128Bytes)
Returns a new FixedString4096Bytes that is a copy of another string.
Declaration
public static implicit operator FixedString4096Bytes(in FixedString128Bytes fs)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
fs | A FixedString128Bytes to copy. |
Returns
Type | Description |
---|---|
Fixed |
A new FixedString4096Bytes that is a copy of the other string. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString4096Bytes. |
implicit operator FixedString128Bytes(string)
Returns a new FixedString128Bytes that is a copy of another string.
Declaration
[ExcludeFromBurstCompatTesting("Takes managed string")]
public static implicit operator FixedString128Bytes(string b)
Parameters
Type | Name | Description |
---|---|---|
string | b | A string to copy. |
Returns
Type | Description |
---|---|
Fixed |
A new FixedString128Bytes that is a copy of another string. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the string to copy's length exceeds the capacity of FixedString128Bytes. |