package encode
- Source
- package.scala
- Alphabetic
- By Inheritance
- encode
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class EncodingError (err: Err) extends Exception with Product with Serializable
-
trait
StreamEncoder
[A] extends AnyRef
A streaming encoding process, represented as a
Stream.Handle[Pure, A] => Pull[Pure, BitVector, (Stream.Handle[Pure, A], StreamEncoder[A])].A streaming encoding process, represented as a
Stream.Handle[Pure, A] => Pull[Pure, BitVector, (Stream.Handle[Pure, A], StreamEncoder[A])]. Pull[Pure, BitVector, StreamEncoder[A]].
Value Members
-
def
emit(bits: BitVector): StreamEncoder[Nothing]
A
StreamEncoderthat emits the givenBitVector, then halts. -
def
empty[A]: StreamEncoder[A]
The encoder that consumes no input and emits no values.
-
def
fail[A](err: Err): StreamEncoder[A]
The encoder that consumes no input and halts with the given error message.
-
def
fail[A](err: Throwable): StreamEncoder[A]
The encoder that consumes no input and halts with the given error.
-
def
many[A](implicit A: Lazy[Encoder[A]]): StreamEncoder[A]
A
StreamEncoderwhich encodes a stream of values. -
def
once[A](implicit A: Lazy[Encoder[A]]): StreamEncoder[A]
A
StreamEncoderwhich encodes a single value, then halts. -
def
tryOnce[A](implicit A: Lazy[Encoder[A]]): StreamEncoder[A]
A
StreamEncoderwhich encodes a single value, then halts.A
StreamEncoderwhich encodes a single value, then halts. Unlikeonce, encoding failures are converted to normal termination. - object StreamEncoder