//Fastpath, serialize to direct buffer creating no garbage
if (outbuf.remaining() >= serializedSize) {
final int oldLimit = outbuf.limit();
outbuf.limit(outbuf.position() + serializedSize);
final ByteBuffer slice = outbuf.slice();
ds.serialize(slice);
checkSloppySerialization(slice, ds);
slice.position(0);
bytesQueued += slice.remaining();
outbuf.position(outbuf.limit());
outbuf.limit(oldLimit);