public void write(byte[] buf) {
        write(buf, 0, buf.length);
    }
<p>This is a convenience method to convert the given byte array into a ByteBuffer object, and then passing that
to {@link #write(java.nio.ByteBuffer)}.</p>

@param buf The bytes to write.
jdisc_core/src/main/java/com/yahoo/jdisc/handler/FastContentWriter.java