Message Encoder
Properties
Functions
Link copied to clipboard
Encodes the message into the buffer where the buffer is the out property in Netty. Rather than allocating new byte buf instances, we can directly encode to the out property with most packets. This does not however hold true with pre-computed ones, such as player info, where we must instead write the pre-computed bytes over to out first.