Class: MsgPackSerializer

MsgPackSerializer

Serializer based on MessagePack.

Constructor

new MsgPackSerializer()

Creates a new MsgPackSerializer.

Source:

Methods

deserialize(bytes) → {object}

Deserializes an object from a byte array.

Parameters:
Name Type Description
bytes Uint8Array

The byte array

Source:
Returns:

The deserialized data.

Type
object

serialize(data) → {Uint8Array}

Serializes an object into a byte array.

Parameters:
Name Type Description
data object

The data to serialize.

Source:
Returns:

The byte array.

Type
Uint8Array