MsgpackCodec

trait MsgpackCodec[A]
Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def pack(packer: MsgPacker, a: A): Unit
def unpack(unpacker: MsgUnpacker): UnpackResult[A]

Concrete methods

def packF: () => A
final
def roundtrip(a: A, packer: MsgPacker, unpacker: Array[Byte] => MsgUnpacker): Option[UnpackError \/ A]
Returns

None if success Some(-\/(_)) if fromBytes returns deserialize error Some(\/-(_)) if fromBytes and toByte are inconsistent

final
def roundtripz(a: A, packer: MsgPacker, unpacker: Array[Byte] => MsgUnpacker)(implicit A: Equal[A]): Option[UnpackError \/ A]
final
def toBytes(a: A, packer: MsgPacker): Array[Byte]
final
def unpackAndClose(unpacker: MsgUnpacker): UnpackResult[A]
def unpackF: () => A
final
def xmap[B](f: A => B, g: B => A): MsgpackCodec[B]