writeAdd(index, element);
}
private void writeAdd(int index, E element) {
Excerpt excerpt = getExcerpt(maxMessageSize, addIndex);
long eventId = excerpt.index();
excerpt.writeInt(offset + index);
writeElement(excerpt, element);
excerpt.finish();
if (!notifyOff && !listeners.isEmpty()) {
for (int i = 0; i < listeners.size(); i++) {