msgpack_unpack: 'MsgPack' Unpack

Description Usage Arguments Value See Also Examples

View source: R/functions.r

Description

De-serialize a 'MsgPack' message. Array is converted into List. Map is converted into Map/Data.frame. Extension types are converted into raw vectors with EXT attribute. Integers, Floats, Strings, Raw and Nil are converted into Integer, Float, Character, Raw and NULL respectively.

Usage

1
2
3
msgpack_unpack(message, simplify = F)

msgpackUnpack(message, simplify = F)

Arguments

message

A raw vector containing the message.

simplify

Default false. Should the return object be simplified? This is generally faster and more memory efficient.

Value

The message pack object(s) converted into R types. If more than one object exists in the message, a list of class "msgpack_set" containing the objects is returned.

See Also

See examples/tests.r for more examples.

Examples

1
2
3
4
x <- msgpack_format(1:10)
x_packed <- msgpack_pack(x)
x_unpacked <- msgpack_unpack(x_packed)
x_simplified <- msgpack_simplify(x_unpacked)

RcppMsgPack documentation built on May 7, 2018, 1:03 a.m.