Treatment toByte
conv/bool::toByte
Inputs
⇥ value:
Stream<bool>
Outputs
↦ data:
Stream<Vec<byte>>
Turns bool
stream into byte
one.
Each bool
gets converted into Vec<byte>
, with each vector containing the byte
of the former scalar bool
it represents.
ℹ️ A bool
always corresponds to one byte
, being 0
if false
and 1
if true
.