Skip to main content

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

NameTypeDescription
xstringThe input string to be converted into bytes.

Returns

TypeDescription
bytesThe byte representation of the input string encoded using the UTF-8 character set.