GSF.IO.FileStructure.IndexParser.ClearIndexCache C# (CSharp) Method

ClearIndexCache() public method

Resets the index cache with the information from the supplied mostRecentParser
public ClearIndexCache ( IndexParser mostRecentParser ) : void
mostRecentParser IndexParser
return void
        public void ClearIndexCache(IndexParser mostRecentParser)
        {
            FirstIndirectBlockAddress = mostRecentParser.FirstIndirectBlockAddress;
            SecondIndirectBlockAddress = mostRecentParser.SecondIndirectBlockAddress;
            ThirdIndirectBlockAddress = mostRecentParser.ThirdIndirectBlockAddress;
            FourthIndirectBlockAddress = mostRecentParser.FourthIndirectBlockAddress;
            DataClusterAddress = mostRecentParser.DataClusterAddress;
            MapPosition(mostRecentParser.BaseVirtualAddressIndexValue);
            m_oldFirstOffset = -1;
        }

Usage Example

 public void ClearIndexCache(IndexParser mostRecentParser)
 {
     if (IsDisposed || m_ioSessions.IsDisposed)
     {
         throw new ObjectDisposedException(GetType().FullName);
     }
     m_parser.ClearIndexCache(mostRecentParser);
 }