Encode the given {@link CharBuffer} using the given {@link Charset} into a new {@link ByteBuf} which is allocated via the {@link ByteBufAllocator}.
See Implementation
Encode the given {@link CharBuffer} using the given {@link Charset} into a new {@link ByteBuf} which is allocated via the {@link ByteBufAllocator}.