public void ReadBinary(BinaryReader r) { // Read as ImmutableMemberIndex only _addedIndex = null; _existingIndex = new ImmutableMemberIndex(); _existingIndex.ReadBinary(r); }
public void ConvertToImmutable(StringStore strings) { if (_addedIndex != null) { if (_existingIndex != null) { // Need to implement index merging for this throw new NotImplementedException(); } else { // Convert AddedIndex to Immutable form _addedIndex.UpdateIdentifiers(strings); _existingIndex = _addedIndex.ConvertToImmutable(strings); _addedIndex = null; } } // If nothing was indexed, write an empty index for serialization to load if (_existingIndex == null) { _existingIndex = ImmutableMemberIndex.Empty; } }