StreamEncoder

fs2.interop.scodec.StreamEncoder
See theStreamEncoder companion class
object StreamEncoder

Attributes

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

Members list

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.

Attributes

Source
StreamEncoder.scala
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.

Attributes

Source
StreamEncoder.scala
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.

Attributes

Source
StreamEncoder.scala
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.

Attributes

Source
StreamEncoder.scala
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.

Attributes

Source
StreamEncoder.scala
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.

Attributes

Source
StreamEncoder.scala
def tryMany[A](encoder: Encoder[A]): StreamEncoder[A]

Creates a stream encoder which encodes all input values, then halts.

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

Attributes

Source
StreamEncoder.scala
def tryOnce[A](encoder: Encoder[A]): StreamEncoder[A]

Creates a stream encoder which encodes a single value, then halts.

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

Attributes

Source
StreamEncoder.scala

Implicits

Implicits

Attributes

Source
StreamEncoder.scala