EventMessageEncoder


@UnstableApi
class EventMessageEncoder


Encodes data that can be decoded by EventMessageDecoder. This class isn't thread safe.

Summary

Public constructors

Public functions

ByteArray<Byte>!
encode(eventMessage: EventMessage!)

Encodes an EventMessage to a byte array that can be decoded by .

Public constructors

EventMessageEncoder

EventMessageEncoder()

Public functions

encode

fun encode(eventMessage: EventMessage!): ByteArray<Byte>!

Encodes an EventMessage to a byte array that can be decoded by .

Parameters
eventMessage: EventMessage!

The event message to be encoded.

Returns
ByteArray<Byte>!

The serialized byte array.