RefMapIn
Building block for deserializing Product
based type hierarchies.
Building block for deserializing Product
based type hierarchies.
By default, the following type tags are supported:
- 'B' Boolean
- 'C' Const (freely definable type -- must implement
readIdentifiedConst
) - 'D' Double
- 'F' Float
- 'I' Int
- 'L' Long
- 'M' Map[_, _]
- 'O' Option[_]
- 'P' Product (through registered
ProductReader
instances) - 'S' String
- 'T' Set[_]
- 'X' Vec[_] (IndexedSeq)
- 'U' Unit
()
- 'R' (freely definable type -- must implement
readIdentifiedR
) - 'Y' (freely definable type -- must implement
readIdentifiedY
) - 'u' (freely definable type -- must implement
readIdentifiedU
) - 'E' (freely definable type -- must implement
readIdentifiedE
) - '<' reference to previous object (as written by
RefMapOut
) - '\u0000' null
Sub-classes may want to patch into readCustomElem
and readCustomProduct
to handle specific new types.
- Value Params
- in0
the binary input to read from
class Object
trait Matchable
class Any