serializeUser

open fun serializeUser(user: User): Array<Byte>

Serializes a User object into a byte array.

Return

a byte array representing the serialized User object

Parameters

user

the User object to serialize

Throws

if an I/O error occurs during serialization