scodec.stream

encode

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

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

  2. trait StreamEncoder[-A] extends AnyRef

    A streaming encoding process, represented as a Process1[A,BitVector].

Value Members

  1. object StreamEncoder

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

    A StreamEncoder that emits the given BitVector, then halts.

  3. def fail(err: Err): StreamEncoder[Nothing]

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

  4. def fail(err: Throwable): StreamEncoder[Nothing]

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

  5. val halt: StreamEncoder[Nothing]

    The encoder that consumes no input and emits no values.

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

    A StreamEncoder which encodes a stream of values.

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

    A StreamEncoder which encodes a single value, then halts.

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

    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