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