estimateMessageSize

abstract fun estimateMessageSize(): Int

Estimates the size of the message, allowing Netty to accurately track the number of bytes writing it would require.

Return

the number of bytes to initialize with.