serializeUserId

abstract fun serializeUserId(userId: UserId): Array<Byte>

Serializes a UserId object into a byte array.

Return

a byte array representing the serialized UserId object

Parameters

userId

the UserId object to serialize

Throws

if an I/O error occurs during serialization