Treatment toByte

conv/char::toByte


Inputs

⇥ value: Stream<char>

Outputs

↦ data: Stream<Vec<byte>>


Turns char stream into byte one.

Each char gets converted into Vec<byte>, with each vector containing the bytes of the former scalar char it represents.

ℹ️ The Vec<byte> obtained from a char is the UTF-8 representation of it, the vector length is always 1 ≤ len ≤ 4.