Unpacker.unpack

Deserializes T object and assigns to value.

If the argument is pointer, dereferences pointer and assigns deserialized value.

int* a;
unpacker.unpack(a)  // enforce throws Exception because a is null or
                    // no throw if deserialized value is nil

int b; a = &b;
unpacker.unpack(b)  // b is deserialized value or
                    // assigns null if deserialized value is nil

Parameters

value T

the reference of value to assign.

Return Value

Type: Unpacker

self, i.e. for method chaining.

Throws

UnpackException when doesn't read from buffer or precision loss occurs and MessagePackException when T type doesn't match serialized type.

Meta