public void clear() {
        length = 0;
    }
Create a buffer with a specified initial size.

@param initialSize The initial size of the buffer.
stroom-util/src/test/java/stroom/util/xml/RingBuffer.java