@Override
    public boolean equals(Object other) {
        if (other == this) return true;
        if ( ! (other instanceof RawBuffer)) return false;
        return (compareTo((RawBuffer)other) == 0);
    }
Create a copy of data in the internal buffer.

@return A copy of the data.
container-search/src/main/java/com/yahoo/search/grouping/request/RawBuffer.java