StreamEncoder

Companion
class
class Object
trait Matchable
class Any

Value members

Methods

Creates a stream encoder that consumes no values and emits no bits.
def once[A](encoder: Encoder[A]): StreamEncoder[A]
Creates a stream encoder that encodes a single value of input using the supplied encoder.
def many[A](encoder: Encoder[A]): StreamEncoder[A]
Creates a stream encoder that encodes all input values using the supplied encoder.
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.
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.
def emit[A](bits: BitVector): StreamEncoder[A]
Creates a stream encoder that emits the given BitVector, then halts.
def raiseError[A](err: Throwable): StreamEncoder[A]
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.