@Override
    public boolean isBlank() {
        if (isEmpty()) {
            return true;
        }

        int start = offset;
        int end = offset + length - 1;

        while (start <= end && buffer[start] <= SPACE) {
            start++;
        }

        return start > end;
    }
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/CharBuffer.java