code: public final void reset(boolean resetChunkSize) {
          markBufferChanged();
          firstChunk = null;
          lastChunk = null;
          totalCharsInList = 0;
          totalCharsInDynamicChunks = -1;
          sizeAtLeast = -1;
          if (resetChunkSize) {
              chunkSize = firstChunkSize;
              totalChunkSize = 0;
          }
          if (allocBuffer == null) {
              allocBuffer = new AllocatedBuffer(chunkSize);
          } else {
              allocBuffer.clear();
          }
          if (dynamicChunkMap == null) {
              dynamicChunkMap = new HashMap<StreamCharBufferKey, StreamCharBufferSubChunk>();
          } else {
              dynamicChunkMap.clear();
          }
      }
docs: resets the state of this buffer (empties it)
  
  @param resetChunkSize