How does the python3 decode() function knows how to delimit the hexs from each other given there is no delimiter contained in a byte string right? Do b-strings have delimiters under the hood?
Utf-8 encoded character may be a 1-B up to 4-B long, that's why I am asking.
The high bits of the first byte of a character inform the byte length of the character. See about UTF-8 in Wikipedia. Basically, if the first byte is
0xxxxxxx
: it is a 1-byte character110xxxxx
: it is a 2-byte character1110xxxx
: it is a 3-byte character11110xxx
: it is a 4-byte character