PacketUdpCodec

open class PacketUdpCodec

Functions

Link copied to clipboard
open fun decode(in: ByteArrayDataInput): Optional<PacketUdp>
open fun decode(@NotNull in: @NotNull ByteArrayDataInput, @NotNull direction: @NotNull PacketDirection): Optional<PacketUdp>
Link copied to clipboard
@NotNull
open fun decodeThrowing(@NotNull in: @NotNull ByteArrayDataInput, @NotNull direction: @NotNull PacketDirection): @NotNull PacketUdp
Link copied to clipboard
open fun encode(@NotNull packet: @NotNull Packet<out Any>, @NotNull secret: @NotNull UUID): Array<Byte>
Link copied to clipboard
open fun encodeThrowing(@NotNull packet: @NotNull Packet<out Any>, @NotNull secret: @NotNull UUID): Array<Byte>
open fun encodeThrowing(@NotNull packet: @NotNull Packet<out Any>, @NotNull secret: @NotNull UUID, @NotNull out: @NotNull ByteArrayDataOutput)
Link copied to clipboard
open fun replaceSecret(data: Array<Byte>, secret: UUID): Array<Byte>