Encodes the input as a UTF-8 byte sequence of length ranging from 1 to 6.

Helper function that returns the ‘header’ byte of the input’s corresponding byte sequence, along with the corresponding length (total number of bytes in the sequence).

Type Definitions

The type representing a byte encoding. Since byte sequences are at most 6 bytes long, it lives on the stack and requires no allocations.