PacketTcpCodec

open class PacketTcpCodec

Functions

Link copied to clipboard
open fun <T : PacketHandler?> decode(buf: ByteArrayDataInput): Optional<Packet<T>>
open fun <T : PacketHandler?> decode(@NotNull buf: @NotNull ByteArrayDataInput, @NotNull direction: @NotNull PacketDirection): Optional<Packet<T>>
Link copied to clipboard
open fun encode(packet: Packet<out Any>): Array<Byte>