scodec

Codec

object Codec

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Codec
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type DecodingContext[+A] = IndexedStateT[[+a]\/[String, a], BitVector, BitVector, A]

    Alias for state/either transformer that simplifies calling decode on a series of codecs, wiring the remaining bit vector of each in to the next entry.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object DecodingContext

    Provides constructors for DecodingContext.

  7. def apply[A](implicit arg0: Codec[A]): Codec[A]

    Gets the implicitly available codec for type A.

  8. def apply[A](encoder: (A) ⇒ \/[Error, BitVector], decoder: (BitVector) ⇒ \/[Error, (BitVector, A)]): Codec[A]

    Creates a codec from encoder and decoder functions.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def decode[A](buffer: BitVector)(implicit arg0: Codec[A]): \/[Error, A]

    Decodes the specified buffer in to a value of type A using an implicitly available codec and discards the remaining bits.

  12. def decode[A](codec: Codec[A], buffer: BitVector): \/[Error, A]

    Decodes the specified bit vector using the specified codec and discards the remaining bits.

  13. def decodeAll[A, B](buffer: BitVector)(f: (A) ⇒ B)(implicit arg0: Codec[A], arg1: Monoid[B]): (Option[Error], B)

  14. def decodeBoth[A, B](codecA: Codec[A], codecB: Codec[B])(buffer: BitVector): \/[Error, (BitVector, (A, B))]

  15. def dropLeft[A, B](codecA: Codec[A], codecB: Codec[B])(implicit arg0: Monoid[A]): Codec[B]

  16. def dropRight[A, B](codecA: Codec[A], codecB: Codec[B])(implicit arg0: Monoid[B]): Codec[A]

  17. def encode[A](a: A)(implicit arg0: Codec[A]): \/[Error, BitVector]

    Encodes the specified value to a bit vector using an implicitly available codec.

  18. def encode[A](codec: Codec[A], a: A): \/[Error, BitVector]

    Encodes the specified value to a bit vector.

  19. def encodeBoth[A, B](codecA: Codec[A], codecB: Codec[B])(a: A, b: B): \/[Error, BitVector]

  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def flatZip[A, B](codecA: Codec[A])(f: (A) ⇒ Codec[B]): Codec[(A, B)]

  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def xmap[A, B](codec: Codec[A])(f: (A) ⇒ B, g: (B) ⇒ A): Codec[B]

    Maps a Codec[A] in to a Codec[B].

Inherited from AnyRef

Inherited from Any

Ungrouped