Encodes the packet and returns a {@link org.hornetq.api.core.HornetQBuffer} containing the data
@param connection the connection
@return the buffer to encode to
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.