I just learned about Mutagen and have started working to convert a big pile of XEditLib P/Invoke code. One important thing that I haven't been able to find - though that doesn't mean it's not there, I might just be missing it - is the PO pointer that XEdit provides. I assume that the Parent property actually points to the master record, since there isn't an actual Master property.
Specifically, I use this to check for ITPO, which is important for my use case. I suppose I could do something like scan through the entire load order searching for the last previous record with the same key, but it seems inefficient by comparison... I have to do this on potentially several thousand records.
AFAICT the Equals operator already does a deep comparison, so all I need is an efficient way to find the PO record to compare to. Does it already exist and I'm missing the obvious, or is it not supported yet/ever?
I just learned about Mutagen and have started working to convert a big pile of XEditLib P/Invoke code. One important thing that I haven't been able to find - though that doesn't mean it's not there, I might just be missing it - is the PO pointer that XEdit provides. I assume that the
Parentproperty actually points to the master record, since there isn't an actualMasterproperty.Specifically, I use this to check for ITPO, which is important for my use case. I suppose I could do something like scan through the entire load order searching for the last previous record with the same key, but it seems inefficient by comparison... I have to do this on potentially several thousand records.
AFAICT the
Equalsoperator already does a deep comparison, so all I need is an efficient way to find the PO record to compare to. Does it already exist and I'm missing the obvious, or is it not supported yet/ever?