StreamDecoder

fs2.interop.scodec.StreamDecoder
See theStreamDecoder companion class
object StreamDecoder

Attributes

Companion
class
Source
StreamDecoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def emit[A](a: A): StreamDecoder[A]

Stream decoder that emits a single A and consumes no bits from the input.

Stream decoder that emits a single A and consumes no bits from the input.

Attributes

Source
StreamDecoder.scala

Stream decoder that emits the supplied A values and consumes no bits from the input.

Stream decoder that emits the supplied A values and consumes no bits from the input.

Attributes

Source
StreamDecoder.scala
def ignore(bits: Long): StreamDecoder[Nothing]

Creates a stream decoder that ignores the specified number of bits.

Creates a stream decoder that ignores the specified number of bits.

Attributes

Source
StreamDecoder.scala

Creates a stream decoder that reads the specified number of bits and then decodes them with the supplied stream decoder.

Creates a stream decoder that reads the specified number of bits and then decodes them with the supplied stream decoder. Any remainder from the inner stream decoder is discarded.

Attributes

Source
StreamDecoder.scala

Creates a stream decoder that repeatedly decodes A values using the supplied decoder.

Creates a stream decoder that repeatedly decodes A values using the supplied decoder. Note: insufficient bit errors raised from the supplied decoder do **not** get re-raised.

Attributes

Source
StreamDecoder.scala

Creates a stream decoder that decodes one A using the supplied decoder.

Creates a stream decoder that decodes one A using the supplied decoder. Input bits are buffered until the decoder is able to decode an A.

Attributes

Source
StreamDecoder.scala

Creates a stream decoder that fails decoding with the specified exception.

Creates a stream decoder that fails decoding with the specified exception.

Attributes

Source
StreamDecoder.scala
def raiseError(err: Err): StreamDecoder[Nothing]

Creates a stream decoder that fails decoding with the specified error.

Creates a stream decoder that fails decoding with the specified error.

Attributes

Source
StreamDecoder.scala

Creates a stream decoder that repeatedly decodes A values until decoding fails.

Creates a stream decoder that repeatedly decodes A values until decoding fails. If decoding fails, the read bits are not consumed and the stream decoder terminates, having emitted any successfully decoded values earlier. Note: insufficient bit errors raised from the supplied decoder do **not** get re-raised.

Attributes

Source
StreamDecoder.scala

Creates a stream decoder that attempts to decode one A using the supplied decoder.

Creates a stream decoder that attempts to decode one A using the supplied decoder. Input bits are buffered until the decoder is able to decode an A. If decoding fails, the bits are not consumed and the stream decoder yields no values.

Attributes

Source
StreamDecoder.scala

Concrete fields

val empty: StreamDecoder[Nothing]

Stream decoder that emits no elements.

Stream decoder that emits no elements.

Attributes

Source
StreamDecoder.scala

Implicits

Implicits

Attributes

Source
StreamDecoder.scala