Generate the whole frame (header + payload copy) into a single ByteBuffer.
<p>
Note: This is slow, moves lots of memory around. Only use this if you must (such as in unit testing).
@param frame the frame to generate
@param buf the buffer to output the generated frame to
Generate the whole frame (header + payload copy) into a single ByteBuffer. <p> Note: This is slow, moves lots of memory around. Only use this if you must (such as in unit testing).
@param frame the frame to generate @param buf the buffer to output the generated frame to