Constructor
new MsgPackSerializer()
Creates a new MsgPackSerializer.
Methods
deserialize(bytes) → {object}
Deserializes an object from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array | The byte array |
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. |
Returns:
The byte array.
- Type
- Uint8Array