0fdf2e7f3a
Motivation: We have already calculated the payload length. So no need to calculate again when allocating ByteBuf Modification: Used payloadLength variable instead of calculating the payload length again Result: Re-use the variable value and make the code cleaner