Packages

trait AutoDecoder[A] extends Decoder[A]

A type class that decode a value of type A from a CodedInputSteam. Each parameters of A is associated to an incremental index (starting from 1) representing the protobuf field index.

The decoder is implicitly transformed into an IncrementalDecoder[A, Nat._1] after the first induction step.

Annotations
@implicitNotFound( ... ) @inductive()
Source
AutoDecoder.scala
Linear Supertypes
Decoder[A], Serializable, Serializable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AutoDecoder
  2. Decoder
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def decode(input: CodedInputStream): Result[A]

    Try to read the value A in the CodedInputStream.

    Try to read the value A in the CodedInputStream.

    Definition Classes
    Decoder

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from AutoDecoder[A] to any2stringadd[AutoDecoder[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (AutoDecoder[A], B)
    Implicit
    This member is added by an implicit conversion from AutoDecoder[A] to ArrowAssoc[AutoDecoder[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def and[B](fb: Decoder[B]): Decoder[(A, B)]

    Run two decoders and return their results as a pair.

    Run two decoders and return their results as a pair.

    Definition Classes
    Decoder
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. def decode(input: ByteBuffer): Result[A]

    Try to read the value A from the ByteBuffer.

    Try to read the value A from the ByteBuffer.

    Definition Classes
    Decoder
  10. def decode(input: InputStream): Result[A]

    Try to read the value A from the InputStream.

    Try to read the value A from the InputStream.

    Definition Classes
    Decoder
  11. def decode(input: Array[Byte]): Result[A]

    Try to read the value A from the Array[Byte].

    Try to read the value A from the Array[Byte].

    Definition Classes
    Decoder
  12. final def emap[B](f: (A) ⇒ Either[DecodingFailure, B]): Decoder[B]

    Create a new decoder that performs some operation on the result if this one succeeds.

    Create a new decoder that performs some operation on the result if this one succeeds.

    f

    a function returning either a value or an error message

    Definition Classes
    Decoder
  13. final def emapTry[B](f: (A) ⇒ Try[B]): Decoder[B]

    Create a new decoder that performs some operation on the result if this one succeeds.

    Create a new decoder that performs some operation on the result if this one succeeds.

    f

    a function returning either a value or an error message

    Definition Classes
    Decoder
  14. def ensuring(cond: (AutoDecoder[A]) ⇒ Boolean, msg: ⇒ Any): AutoDecoder[A]
    Implicit
    This member is added by an implicit conversion from AutoDecoder[A] to Ensuring[AutoDecoder[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (AutoDecoder[A]) ⇒ Boolean): AutoDecoder[A]
    Implicit
    This member is added by an implicit conversion from AutoDecoder[A] to Ensuring[AutoDecoder[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): AutoDecoder[A]
    Implicit
    This member is added by an implicit conversion from AutoDecoder[A] to Ensuring[AutoDecoder[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): AutoDecoder[A]
    Implicit
    This member is added by an implicit conversion from AutoDecoder[A] to Ensuring[AutoDecoder[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from AutoDecoder[A] to StringFormat[AutoDecoder[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def or[AA >: A](d: ⇒ Decoder[AA]): Decoder[AA]

    Choose the first succeeding decoder.

    Choose the first succeeding decoder.

    Definition Classes
    Decoder
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  34. def [B](y: B): (AutoDecoder[A], B)
    Implicit
    This member is added by an implicit conversion from AutoDecoder[A] to ArrowAssoc[AutoDecoder[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Decoder[A]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from AutoDecoder[A] to any2stringadd[AutoDecoder[A]]

Inherited by implicit conversion StringFormat from AutoDecoder[A] to StringFormat[AutoDecoder[A]]

Inherited by implicit conversion Ensuring from AutoDecoder[A] to Ensuring[AutoDecoder[A]]

Inherited by implicit conversion ArrowAssoc from AutoDecoder[A] to ArrowAssoc[AutoDecoder[A]]

Ungrouped