PacketSerializable

The PacketSerializable interface defines the contract for objects that can be serialized and deserialized to and from byte streams using a ByteArrayDataInput for deserialization and a ByteArrayDataOutput for serialization. Implementing classes must provide methods to serialize themselves into a byte stream and deserialize themselves from a byte stream.

Inheritors

Functions

Link copied to clipboard
@ApiStatus.Internal
abstract fun deserialize(in: ByteArrayDataInput)
Deserialize the object from a byte stream using the provided ByteArrayDataInput.
Link copied to clipboard
@ApiStatus.Internal
abstract fun serialize(out: ByteArrayDataOutput)
Serialize the object to a byte stream using the provided ByteArrayDataOutput.