Unpacker.unpack

Deserializes T object and assigns to object.

Calling fromMsgpack if $(D_KEYWORD class) and $(D_KEYWORD struct) implement fromMsgpack method. fromMsgpack signature is:

void fromMsgpack(ref Unpacker unpacker)

Assumes std.typecons.Tuple or simple struct if $(D_KEYWORD struct) doesn't implement fromMsgpack. Checks length if T is a std.typecons.Tuple or simple struct.

Parameters

object T

the reference of object to assign.

args Args

the arguments to class constructor(class only). This is used at new statement if object is $(D_KEYWORD null).

Return Value

Type: Unpacker

self, i.e. for method chaining.

Meta