AdtDecoder

io.bullet.borer.AdtDecoder
trait AdtDecoder[T] extends Decoder[T]

An AdtDecoder is a Decoder whose read method expects to read an envelope (holding the type id) around the actual value encoding.

In order to be able to collapse several envelope levels into a single one, when several AdtDecoder instances call each other, this type also provides read overloads which don't read the type id envelope themselves but can receive the type id from the outside.

Attributes

Graph
Supertypes
trait Decoder[T]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def read(r: Reader, typeId: Long): T
def read(r: Reader, typeId: String): T

Inherited methods

def read(r: Reader): T

Attributes

Inherited from:
Decoder