pack {msgpackR}R Documentation

serialize data to MessagePack format

Description

Serialize data to MessagePack format

Usage

pack(data)

Arguments

data

data that you want to serialize, e.g. c(1,2,3)

Value

serialized data to MessagePack format

Author(s)

Mikiya TANIZAWA 1970mix@gmail.com

See Also

unpack, msgpack.writeResult

Examples

pack(c(1,2,3))
#[1] 93 01 02 03
mat <- matrix(c(1:6), nrow=2); colnames(mat) <- c("A","B","C"); pack(mat);
#[1] 92 83 a1 41 01 a1 42 03 a1 43 05 83 a1 41 02 a1 42 04 a1 43 06

[Package msgpackR version 1.1 Index]