@Override
    public byte[] toByteArray() {
        return buf;
    }
Subclass of {@link java.io.ByteArrayOutputStream} that gives effective {@link #toByteArray()} method.

@author Ulf Lilleengen
config/src/main/java/com/yahoo/vespa/config/protocol/NoCopyByteArrayOutputStream.java