object MsgpackCodec

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

Value Members

  1. def apply[A](implicit A: MsgpackCodec[A]): MsgpackCodec[A]
    Annotations
    @inline()
  2. def codec[A](packerF: Packer[A], unpackerF: Unpacker[A]): MsgpackCodec[A]
  3. def codecTry[A](packF: Packer[A], unpackF: (MsgUnpacker) => A): MsgpackCodec[A]
  4. def from[A, B](applyFunc: (A) => B, unapplyFunc: (B) => Option[A])(implicit A: MsgpackCodec[A]): MsgpackCodec[B]

    Example:
    1. case class UserId(value: Int)
      
      object UserId {
        implicit val msgpackCodec: MsgpackCodec[UserId] =
          MsgpackCodec.from(apply, unapply)
      }