ByteBuf as output stream