StreamEncoder

final class StreamEncoder[A]
A streaming encoding process, represented as a Stream[Pure, A] => Pull[Pure, BitVector, Option[(Stream[Pure, A], StreamEncoder[A])]].
Companion
object
class Object
trait Matchable
class Any

Value members

Methods

def encodeAllValid(in: Seq[A]): BitVector
Encode the given sequence of A values to a BitVector, raising an exception
in the event of an encoding error.
def toPipe[F <: ([_$3] =>> Any)](evidence$1: RaiseThrowable[F]): (F, A) => BitVector
Converts this encoder to a Pipe[F, A, BitVector].
def toPipeByte[F <: ([_$4] =>> Any)](evidence$2: RaiseThrowable[F]): (F, A) => Byte
Converts this encoder to a Pipe[F, A, Byte].
def encode[F <: ([_$5] =>> Any)](in: Stream[F, A])(evidence$3: RaiseThrowable[F]): Stream[F, BitVector]
Encodes the supplied stream of A values in to a stream of BitVector.
def ++(that: => StreamEncoder[A]): StreamEncoder[A]
Creates a stream encoder that first encodes with this encoder and then when complete,
encodes the remainder with the supplied encoder.
Encodes values as long as there are more inputs.
def xmapc[B](f: A => B)(g: B => A): StreamEncoder[B]
Transform the input type of this StreamEncoder.