Interface: QueueCodec
The encoding of the messages and the results of a Queue: both sides of a queue use the same one.
Methods
decode()
decode(
bytes):unknown
Decode bytes encoded by QueueCodec.encode.
Parameters
bytes
Uint8Array
The bytes.
Returns
unknown
The value.
encode()
encode(
value):Uint8Array
Encode a value (an object for a message).
Parameters
value
unknown
The value.
Returns
Uint8Array
Its bytes.