serialize

open fun serialize(out: ByteArrayDataOutput)

Serialize the object to a byte stream using the provided ByteArrayDataOutput. This method converts the object into its serialized form.

Parameters

out

The ByteArrayDataOutput to which the serialized data should be written.

Throws

If an I/O error occurs during serialization.