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 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
abstract fun isLengthReadable(input: ByteBuf): Boolean
Link copied to clipboard
abstract fun readLength(input: ByteBuf): Int
Link copied to clipboard
abstract fun setLength(output: ByteBuf, index: Int, written: Int)
Link copied to clipboard
abstract fun writeLengthPlaceholder(output: ByteBuf)