TagTool.Cache.TagCache.FixTagOffsets C# (CSharp) Méthode

FixTagOffsets() private méthode

Fixes tag offsets after a resize operation.
private FixTagOffsets ( long startOffset, long sizeDelta, TagInstance ignore ) : void
startOffset long The offset where the resize operation took place.
sizeDelta long The amount to add to each tag offset after the start offset.
ignore TagTool.TagGroups.TagInstance A tag to ignore.
Résultat void
        private void FixTagOffsets(long startOffset, long sizeDelta, TagInstance ignore)
        {
            foreach (var adjustTag in _tags.Where(t => t != null && t != ignore && t.HeaderOffset >= startOffset))
                adjustTag.HeaderOffset += sizeDelta;
        }