scodec.stream
package scodec.stream
Type members
Classlikes
Supports binary decoding of a stream that emits elements as they are decoded.
The main purpose of using a
decoding with processing. For example,
could be used to decode a bit stream but the decoded
emitted until the end of the bit stream. With
each decoded
StreamDecoder
over an scodec.Decoder
is mixingdecoding with processing. For example,
scodec.codecs.vector(decoderA): Decoder[Vector[A]]
could be used to decode a bit stream but the decoded
Vector[A]
would not beemitted until the end of the bit stream. With
StreamDecoder.many(decoderA): StreamDecoder[A]
,each decoded
A
value is emitted as soon as it is decoded.The
and
StreamDecoder
companion has various constructors -- most importantly, once
and
many
, that allow a Decoder[A]
to be lifted to a StreamDecoder[A]
.Given a
by calling a variant of
StreamDecoder[A]
, a bit stream can be decoded via the decode
method orby calling a variant of
toPipe
.- Companion
- object
A streaming encoding process, represented as a
Stream[Pure, A] => Pull[Pure, BitVector, Option[(Stream[Pure, A], StreamEncoder[A])]]
.- Companion
- object