Contract for the binary serializers used by Stormancer applications.
- Source:
Members
name :string
The serializer format.
Type:
- string
- Source:
Methods
deserialize(bytes) → {object}
Deserialize an object from a stream.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array | The byte array to deserialize. |
- Source:
Returns:
The deserialized object.
- Type
- object
serialize(data) → {Uint8Array}
Serialize an object into a stream.
Parameters:
Name | Type | Description |
---|---|---|
data |
object | The object to serialize. |
- Source:
Returns:
The byte array.
- Type
- Uint8Array