PrimitiveCodec

wvlet.airframe.codec.PrimitiveCodec$.PrimitiveCodec
trait PrimitiveCodec[A] extends MessageCodec[A]

Attributes

Graph
Supertypes
trait MessageCodec[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object BigIntCodec.type
object BigIntegerCodec.type
object BooleanCodec.type
object ByteCodec.type
object CharCodec.type
object DoubleCodec.type
object FloatCodec.type
object IntCodec.type
object LongCodec.type
object ShortCodec.type
object StringCodec.type
object UnitCodec.type

Members list

Concise view

Value members

Abstract methods

def surface: Surface

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def fromJson(json: Array[Byte]): A

Attributes

Inherited from:
MessageCodec
def fromJson(json: String): A

Attributes

Inherited from:
MessageCodec
def fromMap(m: Map[String, Any]): A

Attributes

Inherited from:
MessageCodec
def fromMsgPack(msgpack: Array[Byte]): A

Attributes

Inherited from:
MessageCodec
def fromString(s: String): A

A shortcut for fromMsgPack(StringCodec.toMsgPack(s))

A shortcut for fromMsgPack(StringCodec.toMsgPack(s))

Attributes

Inherited from:
MessageCodec
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def pack(p: Packer, v: A): Unit

Attributes

Inherited from:
MessageCodec
def pack(v: A): MsgPack

Converting the object into MessagePack (= Array[Byte])

Converting the object into MessagePack (= Array[Byte])

Attributes

Inherited from:
MessageCodec
def toJSONObject(v: A): JSONObject

Attributes

Inherited from:
MessageCodec
def toJson(v: A): String

Attributes

Inherited from:
MessageCodec
def toMsgPack(v: A): Array[Byte]

Attributes

Inherited from:
MessageCodec
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def unpack(u: Unpacker, v: MessageContext): Unit

Attributes

Inherited from:
MessageCodec
def unpack(msgpack: MsgPack): A

Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException

Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException

Attributes

Inherited from:
MessageCodec
def unpackBytes(msgpack: Array[Byte], offset: Int, len: Int): Option[A]

Attributes

Inherited from:
MessageCodec
def unpackBytes(msgpack: Array[Byte]): Option[A]

Attributes

Inherited from:
MessageCodec
def unpackJson(json: String): Option[A]

Attributes

Inherited from:
MessageCodec
def unpackMsgPack(msgpack: Array[Byte], offset: Int, len: Int): Option[A]

Attributes

Inherited from:
MessageCodec
def unpackMsgPack(msgpack: Array[Byte]): Option[A]

Attributes

Inherited from:
MessageCodec
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods