Package

scodec.stream

encode

Permalink

package encode

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. encode
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class EncodingError(err: Err) extends Exception with Product with Serializable

    Permalink
  2. trait StreamEncoder[A] extends AnyRef

    Permalink

    A streaming encoding process, represented as a Handle[Pure, A] => Pull[Pure, BitVector, (Handle[Pure, A], StreamEncoder[A])].

    A streaming encoding process, represented as a Handle[Pure, A] => Pull[Pure, BitVector, (Handle[Pure, A], StreamEncoder[A])]. Pull[Pure, BitVector, StreamEncoder[A]].

Value Members

  1. object StreamEncoder

    Permalink
  2. def emit(bits: BitVector): StreamEncoder[Nothing]

    Permalink

    A StreamEncoder that emits the given BitVector, then halts.

  3. def empty[A]: StreamEncoder[A]

    Permalink

    The encoder that consumes no input and emits no values.

  4. def fail[A](err: Err): StreamEncoder[A]

    Permalink

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

  5. def fail[A](err: Throwable): StreamEncoder[A]

    Permalink

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

  6. def many[A](implicit A: Lazy[Encoder[A]]): StreamEncoder[A]

    Permalink

    A StreamEncoder which encodes a stream of values.

  7. def once[A](implicit A: Lazy[Encoder[A]]): StreamEncoder[A]

    Permalink

    A StreamEncoder which encodes a single value, then halts.

  8. def tryOnce[A](implicit A: Lazy[Encoder[A]]): StreamEncoder[A]

    Permalink

    A StreamEncoder which encodes a single value, then halts.

    A StreamEncoder which encodes a single value, then halts. Unlike once, encoding failures are converted to normal termination.

Inherited from AnyRef

Inherited from Any

Ungrouped