encode

abstract fun encode(input: T, output: ByteBuf, cipher: StreamCipher)