Serializer

public interface Serializer
Author:Lars Kroll <lkroll@kth.se>

Methods

fromBinary

public Object fromBinary(ByteBuf buf, Optional<Object> hint)

Deserialize from buf. Optionally use hint to decide what to deserialize.

Parameters:
  • buf
  • hint

identifier

public int identifier()

toBinary

public void toBinary(Object o, ByteBuf buf)

Serialize o into buf.

Parameters:
  • o
  • buf