@Override
    public char[] toCharArray() {
        final char[] chars = new char[length];
        System.arraycopy(buffer, length - offset - 1, chars, 0, length);
        return chars;
    }
Create a buffer with a specified initial size.

@param initialSize The initial size of the buffer.
stroom-pipeline/src/main/java/stroom/pipeline/xml/converter/ds3/ReverseBuffer.java