buf_t
Converts a given string into a sequence of bytes using UTF-8 encoding.
def buf_t(
x: string
) - > bytes
Converts a string into a UTF-8 encoded byte sequence.
Parameters
| Name | Type | Description |
|---|---|---|
| x | string | The input string to be converted into bytes. |
Returns
| Type | Description |
|---|---|
bytes | The byte representation of the input string encoded using the UTF-8 character set. |