StreamEncoder

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def emit[A](bits: BitVector): StreamEncoder[A]

Creates a stream encoder that emits the given BitVector, then halts.

Creates a stream encoder that emits the given BitVector, then halts.

def empty[A]: StreamEncoder[A]

Creates a stream encoder that consumes no values and emits no bits.

Creates a stream encoder that consumes no values and emits no bits.

def many[A](encoder: Encoder[A]): StreamEncoder[A]

Creates a stream encoder that encodes all input values using the supplied encoder.

Creates a stream encoder that encodes all input values using the supplied encoder.

def once[A](encoder: Encoder[A]): StreamEncoder[A]

Creates a stream encoder that encodes a single value of input using the supplied encoder.

Creates a stream encoder that encodes a single value of input using the supplied encoder.

def raiseError[A](err: Throwable): StreamEncoder[A]

The encoder that consumes no input and halts with the given error.

The encoder that consumes no input and halts with the given error.

def raiseError[A](err: Err): StreamEncoder[A]

The encoder that consumes no input and halts with the given error message.

The encoder that consumes no input and halts with the given error message.

def tryMany[A](encoder: Encoder[A]): StreamEncoder[A]

Creates a stream encoder which encodes all input values, then halts. Unlike many, if an encoding failure occurs, the resulting stream is not terminated.

Creates a stream encoder which encodes all input values, then halts. Unlike many, if an encoding failure occurs, the resulting stream is not terminated.

def tryOnce[A](encoder: Encoder[A]): StreamEncoder[A]

Creates a stream encoder which encodes a single value, then halts. Unlike once, if an encoding failure occurs, the resulting stream is not terminated.

Creates a stream encoder which encodes a single value, then halts. Unlike once, if an encoding failure occurs, the resulting stream is not terminated.