VariableBytePacketCodec

abstract class VariableBytePacketCodec<T : Packet>(type: Class<T>, opcode: Int) : PacketCodec<T>

Inheritors

Constructors

Link copied to clipboard
constructor(type: Class<T>, opcode: Int)

Properties

Link copied to clipboard
val opcode: Int
Link copied to clipboard
val type: Class<T>

Functions

Link copied to clipboard
open override fun allocateBuffer(alloc: ByteBufAllocator, input: T, preferDirect: Boolean): ByteBuf
Link copied to clipboard
abstract fun decode(input: ByteBuf, cipher: StreamCipher): T
Link copied to clipboard
abstract fun encode(input: T, output: ByteBuf, cipher: StreamCipher)
Link copied to clipboard
open fun getLength(input: T): Int
Link copied to clipboard
open override fun isLengthReadable(input: ByteBuf): Boolean
Link copied to clipboard
open override fun readLength(input: ByteBuf): Int
Link copied to clipboard
open override fun setLength(output: ByteBuf, index: Int, written: Int)
Link copied to clipboard
open override fun writeLengthPlaceholder(output: ByteBuf)