code: public EntryBuffer clear() {
      for (int i = 0; i < buffer.length; i++) {
        buffer[i] = null;
      }
      return this;
    }
docs: Clears the buffer and resets the index to the given index.
  
  @return The entry buffer.