Unpacker.beginMap

Deserializes the type-information of container.

These methods don't deserialize contents. You need to call unpack method to deserialize contents at your own risk.

// serialized data is [1, "Hi!"];
int num;
unpacker.beginArray(2).unpack(num);  // num is 1

// other operation

string str;
unpacker.unpack(str);  // str is "Hi!"
  1. size_t beginArray()
  2. size_t beginMap()
    struct Unpacker
    @safe
    size_t
    beginMap
    ()

Return Value

Type: size_t

the container size.

Meta