- All Known Subinterfaces:
Buffer
- All Known Implementing Classes:
JsonArray,JsonObject,NodeInfo,RegistrationInfo
public interface ClusterSerializable
-
Method Summary
Modifier and TypeMethodDescriptionintreadFromBuffer(int pos, Buffer buffer) Method invoked when deserializing bytes to this instance.voidwriteToBuffer(Buffer buffer) Method invoked when serializing this instance.
-
Method Details
-
writeToBuffer
Method invoked when serializing this instance.- Parameters:
buffer- theBufferwhere the serialized bytes must be written to
-
readFromBuffer
Method invoked when deserializing bytes to this instance.- Parameters:
pos- the position where to start reading thebufferbuffer- theBufferwhere the serialized bytes must be read from- Returns:
- the position after the last serialized byte
-