Method ExtString.ToUTF8(+ 2 overloads)
Overload
Converts to UTF-8 (Encoding.UTF8.GetBytes
).
public static byte[] ToUTF8(this string t)
Parameters
t (string) |
Returns
byte[] |
Overload(next)
Converts to UTF-8.
public static byte[] ToUTF8(this ReadOnlySpan<char> t, bool append0 = false)
Parameters
t (ReadOnlySpan<char>) |
append0 (bool)
Return 0-terminated UTF-8 string. |
Returns
byte[] |
Overload(top)
Converts to UTF-8.
public static byte[] ToUTF8(this Span<char> t, bool append0 = false)
Parameters
Returns
byte[] |