docs: JournalSegmentDescriptor copyTo(ByteBuffer buffer) {
      buffer.putInt(version);
      buffer.putLong(id);
      buffer.putLong(index);
      buffer.putInt(maxSegmentSize);
      buffer.putInt(maxEntries);
      buffer.putLong(updated);
      buffer.put(locked ? (byte) 1 : (byte) 0);
      return this;
    }