Sequence FromByte
std/conversion/scalar/i16::FromByte
Inputs
⇥ data: Stream<Vec<byte>>
Outputs
↦ value: Stream<i16>
↦ reject: Stream<Vec<byte>>
Convert stream of Vec<byte>
into i16
.
Each received byte
vector try to be converted into i16
, and if valid is sent as value
. If the incoming vector
is not valid for representing a i16
(i.e. not right size or invalid coding) it is refused and sent through reject
.